Run External Program: '<path to program>' does not exist warning in Options->Downloads #6447

Closed
opened 2026-02-21 18:25:29 -05:00 by deekerman · 0 comments
Owner

Originally created by @SaintPeter on GitHub (Nov 27, 2017).

qBittorrent version and Operating System

qBittorrent v4.0.1 (32-bit)
Windows 10 Version 10.0.15063 Build 15063 (64-bit)

If on linux, libtorrent and Qt version

Qt: 5.7.1
LibTorrent: 1.1.5.0
Boost: 1.65.1

What is the problem

When setting a program to run after Torrent completion, I am presented with a warning saying that the path to my program or my program name does not exist.

What is the expected behavior

I'd expect a fully qualified path to an executable, or an executable in my system the path to not give me a warning.

Steps to reproduce

  1. Go to Options->Downloads
  2. Check the "Run external program on torrent completion" checkbox
  3. Enter the path and options desired.
  4. See an unexpected warning/error message.

I tried three different ways.
First, a fully qualified path to my 7z.exe:
image
It reports '"c:' does not exist, which it absolutely does. ;)

Then a fully qualified path without the double quotes:
image
This works somewhat better, but reports a similar error.

Then I added the 7-Zip path to my system path and use the bare .exe:
image
Similar error message.

Extra info(if any)

Note: The last attempt, with the bare 7z.exe with 7-Zip in my system path does appear to actually WORK, see this image:
image
It just shouldn't give me a warning.

Or, at least, I assumed it worked. The file I tested it against didn't have a .rar file in it. I'll report back if it continues to work with a torrent that does have a .rar file in it.

Note also that it appears to exhibit the issues reported in #7800 with regards to backslashes/forward slashes. This issue may be related.

Originally created by @SaintPeter on GitHub (Nov 27, 2017). ### qBittorrent version and Operating System qBittorrent v4.0.1 (32-bit) Windows 10 Version 10.0.15063 Build 15063 (64-bit) ### If on linux, libtorrent and Qt version Qt: 5.7.1 LibTorrent: 1.1.5.0 Boost: 1.65.1 ### What is the problem When setting a program to run after Torrent completion, I am presented with a warning saying that the path to my program or my program name does not exist. ### What is the expected behavior I'd expect a fully qualified path to an executable, or an executable in my system the path to not give me a warning. ### Steps to reproduce 1. Go to Options->Downloads 2. Check the "Run external program on torrent completion" checkbox 3. Enter the path and options desired. 4. See an unexpected warning/error message. I tried three different ways. First, a fully qualified path to my 7z.exe: ![image](https://user-images.githubusercontent.com/553494/33252439-16c9f520-d2f3-11e7-9eb9-01b5f2dad4ba.png) It reports `'"c:' does not exist`, which it absolutely does. ;) Then a fully qualified path without the double quotes: ![image](https://user-images.githubusercontent.com/553494/33252454-31e8a310-d2f3-11e7-8b71-08832ec511e8.png) This works somewhat better, but reports a similar error. Then I added the 7-Zip path to my system path and use the bare .exe: ![image](https://user-images.githubusercontent.com/553494/33252490-638fc36c-d2f3-11e7-8c24-b542f5f215dc.png) Similar error message. ### Extra info(if any) **Note:** The last attempt, with the bare 7z.exe with 7-Zip in my system path does appear to actually WORK, see this image: ![image](https://user-images.githubusercontent.com/553494/33252528-948c94f4-d2f3-11e7-9ece-81848c82a7fa.png) It just shouldn't give me a warning. Or, at least, I assumed it worked. The file I tested it against didn't have a .rar file in it. I'll report back if it continues to work with a torrent that does have a .rar file in it. Note also that it appears to exhibit the issues reported in #7800 with regards to backslashes/forward slashes. This issue may be related.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#6447
No description provided.