Hi All,
I have been through the forums, however I am a complete newbie to scripts etc and all the scripts seem to do a much more complex task than I am after.
Essentially, I have SAB set up to determine if its a movie (Couch potato) or a tv show (sickbeard).
I am using SAB To Sickbeard script that comes with sickbeard for TV Shows and its working really well.
I have Media Center Master doing all my post processing/artwork etc for movies, however if I set the MCM scan folder to the sab/complete/movies folder, it is sometimes picking up movies as they are unpacking or repairing them, and moving some of the par.2 files, renaming them before the files have been converted to a movie. It messes up everthing.
I am looking for a simple move script that will move a completed movie from 'sab/complete/movies' folder to 'sab/complete/movies/done' folder, as I will set this 'done' folder as my scan folder for MCM.
Thank you very much in advance.
Another simple file move script request
Re: Another simple file move script request
Hi,
I have followed the thread recommended above and have the files moving okay with the following script
@ECHO OFF
REM MAKE SURE THIS DIRECTORY EXISTS
REM ALSO MAKE SURE YOU END IN A TRAILING SLASH
SET CopyToDir="G:\Movies\Complete\"
setlocal
pushd "%~1"
move /Y * %CopyToDir%
popd
exit
The only problem now, is that is moves the files within a new move folder
ie g:\downloaded\captain phillips\captain phillips.mkv
and related files ie g:\downloaded\captain phillips\captain phillips.SRT
and g:\downloaded\captain phillips\sample.mkv
it dumps all of the individual files to my g:\movies\complete folder as:
g:\movies\complete\captain phillips.mkv
g:\movies\complete\captain phillips/srt
etc
and it is leaving the now empty folder in the original location
What I want is for it to move the whole folder once download has completed
ie:
g:\movies\complete\captain phillips\captain phillips.mkv etc
Thanks guys
I have followed the thread recommended above and have the files moving okay with the following script
@ECHO OFF
REM MAKE SURE THIS DIRECTORY EXISTS
REM ALSO MAKE SURE YOU END IN A TRAILING SLASH
SET CopyToDir="G:\Movies\Complete\"
setlocal
pushd "%~1"
move /Y * %CopyToDir%
popd
exit
The only problem now, is that is moves the files within a new move folder
ie g:\downloaded\captain phillips\captain phillips.mkv
and related files ie g:\downloaded\captain phillips\captain phillips.SRT
and g:\downloaded\captain phillips\sample.mkv
it dumps all of the individual files to my g:\movies\complete folder as:
g:\movies\complete\captain phillips.mkv
g:\movies\complete\captain phillips/srt
etc
and it is leaving the now empty folder in the original location
What I want is for it to move the whole folder once download has completed
ie:
g:\movies\complete\captain phillips\captain phillips.mkv etc
Thanks guys
Re: Another simple file move script request
Try this in place of the move /Y * %CopyToDir%
%~3 is the "clean job name" from SAB from this page: http://wiki.sabnzbd.org/user-scripts
Code: Select all
IF NOT EXIST "%CopyToDir%%~3" mkdir "%CopyToDir%%~3"
move /Y * "%CopyToDir%%~3"