Running Win7 x64.
Whenever a torrent completes, I want qBittorrent to run an external executable, so I have "Run an external program on torrent completion" checked. Here's some things I've tried to get it to run:
C:\Program Files\Random Program\Program.exe -flag
notepad.exe
C:\test.bat
After a torrent is completed, it simply doesn't run the program. Any ideas?
Can't get "Run an external program on torrent completion" to do anything
Re: Can't get "Run an external program on torrent completion" to do anything
Still not having any luck. Any thoughts? Is my syntax wrong?
-
- Administrator
- Posts: 2443
- Joined: Sun Jan 23, 2011 1:17 pm
Re: Can't get "Run an external program on torrent completion" to do anything
[quote="samyrius"]
C:\Program Files\Random Program\Program.exe -flag[/quote]
How about wrapping the path in quotes("") ?
[quote="samyrius"]
notepad.exe[/quote]
Maybe, the function doesn't search the PATH env var for the executable.
[quote="samyrius"]
C:\test.bat[/quote]
A .bat file isn't an executable so it cannot be run.
C:\Program Files\Random Program\Program.exe -flag[/quote]
How about wrapping the path in quotes("") ?
[quote="samyrius"]
notepad.exe[/quote]
Maybe, the function doesn't search the PATH env var for the executable.
[quote="samyrius"]
C:\test.bat[/quote]
A .bat file isn't an executable so it cannot be run.
Re: Can't get "Run an external program on torrent completion" to do anything
Thanks sledge, I got it working. The correct syntax for any path with spaces in it is
Code: Select all
"C:\Program Files\Random Program\Program.exe" -flag