Page 2 of 3

Re: Trying to run a .bat file when torrent completes

Posted: Sun Oct 19, 2014 12:45 am
by Cas
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

Posted: Sun Oct 19, 2014 8:40 am
by ambreswe
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.
Well, yes and no, I'm not sure why I thought batch would handle variables like bash do... my bad.
I'll test again with the correct variables.

Re: Trying to run a .bat file when torrent completes

Posted: Sun Oct 19, 2014 8:52 am
by ambreswe
Ok, fixed my mistakes, thanks for that, must've been tired last night.

Code: Select all

@echo off
set torrentid=%1
set torrentname=%2
set torrentpath=%3
@echo Torrent Details: %torrentname% %torrentpath% %torrentid%  >> D:\deluge_exec.log
Doesn't work.
Copied yours, doesn't work :(

Could this be a win8.1 thing?

Re: Trying to run a .bat file when torrent completes

Posted: Fri Oct 24, 2014 11:49 am
by PeeLoW
HI
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

Posted: Sun Oct 26, 2014 10:22 pm
by ambreswe
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

Posted: Tue Oct 28, 2014 7:26 pm
by Cas
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

Posted: Wed Oct 29, 2014 7:32 pm
by ambreswe
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.
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" ?

Cheers.

Re: Trying to run a .bat file when torrent completes

Posted: Wed Oct 29, 2014 7:38 pm
by ambreswe
ambreswe wrote:
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.
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" ?

Cheers.
Tried, doesn't work, I put the script in: C:\Program Files (x86)\Deluge
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

Posted: Wed Oct 29, 2014 10:16 pm
by Cas
Not the script, the path where the log file is created...

Re: Trying to run a .bat file when torrent completes

Posted: Thu Oct 30, 2014 6:30 am
by ambreswe
Cas wrote:Not the script, the path where the log file is created...
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?