Trying to run a .bat file when torrent completes
Re: Trying to run a .bat file when torrent completes
You clearly don't understand batch because you are making fundamental mistakes. The code I posted is a working batch file, just test that and nothing else.
Re: Trying to run a .bat file when torrent completes
Well, yes and no, I'm not sure why I thought batch would handle variables like bash do... my bad.Cas wrote:You clearly don't understand batch because you are making fundamental mistakes. The code I posted is a working batch file, just test that and nothing else.
I'll test again with the correct variables.
Re: Trying to run a .bat file when torrent completes
Ok, fixed my mistakes, thanks for that, must've been tired last night.
Doesn't work.
Copied yours, doesn't work
Could this be a win8.1 thing?
Code: Select all
@echo off
set torrentid=%1
set torrentname=%2
set torrentpath=%3
@echo Torrent Details: %torrentname% %torrentpath% %torrentid% >> D:\deluge_exec.log
Copied yours, doesn't work

Could this be a win8.1 thing?
Re: Trying to run a .bat file when torrent completes
HI
I'm also having this issue when trying to execute the simple bat example within deluge.
I'm also having this issue when trying to execute the simple bat example within deluge.
Re: Trying to run a .bat file when torrent completes
I did do some mistakes to begin with, but I've also copied Cas example and it doesn't work, but now, I think I'm being ignored... 

Re: Trying to run a .bat file when torrent completes
It could be a win8.1 thing... It worked fine for me on Win XP but you could try a different path, such as user dir.
Re: Trying to run a .bat file when torrent completes
I think I also tried putting the script in the Deluge install path before, could try that again, do I still need the whole path? or can I just point to "script.bat" ?Cas wrote:It could be a win8.1 thing... It worked fine for me on Win XP but you could try a different path, such as user dir.
Cheers.
Re: Trying to run a .bat file when torrent completes
Tried, doesn't work, I put the script in: C:\Program Files (x86)\Delugeambreswe wrote:I think I also tried putting the script in the Deluge install path before, could try that again, do I still need the whole path? or can I just point to "script.bat" ?Cas wrote:It could be a win8.1 thing... It worked fine for me on Win XP but you could try a different path, such as user dir.
Cheers.
Any chance you can try this under win8.1?
I really likes Deluge, but this is kind of a showstopper... :-/
Re: Trying to run a .bat file when torrent completes
Not the script, the path where the log file is created...
Re: Trying to run a .bat file when torrent completes
Any extra logging in Deluge I can turn on to see if the script actually runs at all? or if it fails for some reason even before that?Cas wrote:Not the script, the path where the log file is created...