Can't get "Run an external program on torrent completion" to do anything

Windows specific questions, problems.
Post Reply
samyrius

Can't get "Run an external program on torrent completion" to do anything

Post by samyrius »

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?
samyrius

Re: Can't get "Run an external program on torrent completion" to do anything

Post by samyrius »

Still not having any luck. Any thoughts? Is my syntax wrong?
sledgehammer_999
Administrator
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

Post by sledgehammer_999 »

[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.
samyrius

Re: Can't get "Run an external program on torrent completion" to do anything

Post by samyrius »

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
Post Reply