hammerfluff Posted July 7, 2012 Report Share Posted July 7, 2012 Hi guys,I am having a little problem with my scripts not running when the status changes to seeding. It works absolutely fine when I click top and start again manually, however when utorrent is running minimised and something finishes downloading, say overnight, it has not executed the script at all!Is this the way it is supposed to be? Or is this a bug that others are finding? It really has me stumped, and its kinda pointless having to go through and stop and restart all your torrents in order to get them to be copied, this is hardly complete automation!Any ideas would be greatly appreciated! The code is below but I don't think that is the issue....@echo offtitle adaptation of Axmans torrent-file scriptrem Parameter usage: fromdir torrent-name label kind [filename]rem corresponds to uTorrents flags: %D %N %L %K %F %Secho *********************************************echo Run on %date% at %time%echo Status =%6set fromdir=%~1set name=%2set label=%~3set kind=%4set filename=%5set savepartition=D:\Users\Public\Videosset moviedir=%savepartition%\%label%set label_prefix=""set state=%6echo Input: %fromdir% %name% %label% %kind% %filename% %state%rem Determine length of label stringrem echo.%label%>lenrem for %%a in (len) do set /a len=%%~za -2rem This is to pick up if label begins with "Shows" (ex. "Shows\Boardwalk Empire")rem if %len% geq 7 set label_prefix=%label:~1,5%rem echo label_prefix = %label_prefix%echo %date% at %time%: Handling torrent %name% >> D:\Utorrent\handled_torrents.txtrem If label is "Movies"if %3 =="None" ( echo No label, file will be left alone.GOTO:EOF) ELSE ( goto movies)rem xcopy switches:rem S Copies directories and subdirectories except empty ones.rem I If destination does not exist and copying more than one file, assumes that destination must be a directory.rem L Displays files that would be copied. FOR DEBUGrem Y Suppresses prompting to confirm you want to overwrite an existing destination file.:moviesif not %state%=="5" GOTO:EOFecho **Movieset todir=%moviedir%echo todir =%todir%rem If there are rar files in the folder, extract them.rem If there are mkvs, copy them. Check for rars first in case there is a sample.mkv, then we want the rarsif %kind%=="single" goto copyfileif exist %fromdir%\*.mkv goto copymkvsif exist %fromdir%\*.avi goto copyavisif exist %fromdir%\*.rar goto extractrarecho Guess we didnt find anythingGOTO:EOF:copyfilerem Copies single file from fromdir to todirecho Copy %filename% from %fromdir% to %todir%xcopy "%fromdir%\%filename%" "%todir%\" /S /YGOTO:EOF:copyavisecho Copy all avis from %fromdir% and subdirs to %todir%echo xcopy %fromdir%\*.avi %todir%\ /S /I /Yxcopy "%fromdir%\*.avi" "%todir%\" /S /I /YGOTO:EOF:copymkvsecho Copy all mkvs from %fromdir% and subdirs to %todir%xcopy "%fromdir%\*.mkv" "%todir%\" /S /I /YGOTO:EOF:extractrarecho Extracts all rars in %fromdir% to %todir%. rem Requires WinRar installed to c:\Program filesif not exist "%todir%" mkdir "%todir%""c:\program files\winrar\winrar.exe" x -ilog "%fromdir%\*.rar" "*.*" "%todir%"GOTO:EOF Link to comment Share on other sites More sharing options...
hammerfluff Posted July 10, 2012 Author Report Share Posted July 10, 2012 Sorry to bump but does anyone have any ideas regarding this??? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.