Another simple file move script request

Come up with a useful post-processing script? Share it here!
Post Reply
chongwho
Newbie
Newbie
Posts: 10
Joined: November 22nd, 2013, 4:17 pm

Another simple file move script request

Post by chongwho »

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.
chongwho
Newbie
Newbie
Posts: 10
Joined: November 22nd, 2013, 4:17 pm

Re: Another simple file move script request

Post by chongwho »

Anyone?
chongwho
Newbie
Newbie
Posts: 10
Joined: November 22nd, 2013, 4:17 pm

Re: Another simple file move script request

Post by chongwho »

:(
bmupton
Newbie
Newbie
Posts: 9
Joined: November 9th, 2012, 7:14 pm

Re: Another simple file move script request

Post by bmupton »

chongwho
Newbie
Newbie
Posts: 10
Joined: November 22nd, 2013, 4:17 pm

Re: Another simple file move script request

Post by chongwho »

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
bmupton
Newbie
Newbie
Posts: 9
Joined: November 9th, 2012, 7:14 pm

Re: Another simple file move script request

Post by bmupton »

Try this in place of the move /Y * %CopyToDir%

Code: Select all

IF NOT EXIST "%CopyToDir%%~3" mkdir "%CopyToDir%%~3"
move /Y * "%CopyToDir%%~3"
%~3 is the "clean job name" from SAB from this page: http://wiki.sabnzbd.org/user-scripts
Post Reply