Ive been having a problem where all files in the show directory are all converted every single time, so i decided to have sab create a temp directory when it downloads the show . for example
Code: Select all
\\nas\tv\show name\season1\convert\
Code: Select all
\\shinenas\tv\show name\season1\
Code: Select all
"%dirname%\*.mkv ..\
Code: Select all
\convert
here is my current script anyway, i appreciate any help any one can give me.... thankyou.
Code: Select all
set name=%3
set name=%name:"=%
REM rename isos or bins
set dirname=%1
set dirname=%dirname:"=%
set name=%3
set name=%name:"=%
set dirname=%1
set dirname=%dirname:"=%
for /R "%dirname%" %%f in (*.mkv) do e:\handbrake\HandBrakeCLI.exe --input "%%f" --output "\\Shinenas\tv\Ipod\%name%.mp4" --preset="iPhone & iPod Touch"
for /R "%dirname%" %%f in (*.avi) do e:\handbrake\HandBrakeCLI.exe --input "%%f" --output "\\Shinenas\tv\Ipod\%name%.mp4" --preset="iPhone & iPod Touch"
for /R "%dirname%" %%f in (*.mov) do e:\handbrake\HandBrakeCLI.exe --input "%%f" --output "\\Shinenas\tv\Ipod\%name%.mp4" --preset="iPhone & iPod Touch"
move *.avi ..\
move *.mkv ..\
move *.mpg ..\
move *.mp4 ..\
move "%dirname%\*.mov