I am unable to run transmission-remote.exe from within my torrent complete .bat script. I have previous linux experience with transmission executing shell scripts when torrents are complete. I have tried transmission 2.94 x86 & x64 versions on Windows 10 with no luck and latest stable build with no luck either.
Within my script I am able to create sample txt files (torrent_complete_1 & 2) but when the .exe is run the ERRORLEVEL is 1. I'm not quite sure why. I've been reading the forums and it seems like folks are able to perform various operations on the torrents. I have tested unsuccessfully for transmission running as a local service and as an admin user with no luck.
Any help would be much appreciated!
Code: Select all
"script-torrent-done-filename": "C:\\test\\TorrentComplete.bat",
Code: Select all
@echo off
echo "test" > "C:\test\torrent_complete_1.txt"
echo %TR_TORRENT_ID% > "C:\test\torrent_complete_2.txt"
CALL "D:\Program Files\Transmission\transmission-remote" -l
IF %ERRORLEVEL% NEQ 0 (
echo %ERRORLEVEL% > "C:\test\torrent_complete_error.txt"
)
CALL "D:\Program Files\Transmission\transmission-remote" -torrent %TR_TORRENT_ID% --stop
IF %ERRORLEVEL% NEQ 0 (
echo %ERRORLEVEL% >> "C:\test\torrent_complete_error.txt"
)