jondak Posted March 13, 2018 Share Posted March 13, 2018 Hello, i require some help editing a script to generate par2 files for the movie folders. I want to use it to protect my movies from bitrot or other errors. My case: \\unraid\diskXX\movies \720p \yearxx \movie \yearxy \movie \1080p \yearxx \movie \yearxy \movie \movies without subtitles \720p \yearxx \movie \yearxy \movie \1080p \yearxx \movie \yearxy \movie At the moment I am mounting each year as a map network drive using a cmd file which generates the par2 files in each movie folder. I open a command promt and use par.cmd x:\ (x being the network drive) The par2.cmd is as fallows: @ECHO OFF REM this command script requires Windows 2000/XP SETLOCAL REM check input path IF NOT EXIST "%1" ( ECHO The path does not exist. GOTO :EOF ) REM set options for PAR2 client SET par2_path=C:\Users\Jon\AppData\Local\MultiPar\par2j.exe REM SET par2_blocks=64 SET par2_redundancy=2.19 REM recursive search of sub folders PUSHD %1 FOR /D /R %%G IN (*.*) DO CALL :ProcessFolder "%%G" "%%~NG" POPD PAUSE GOTO :EOF REM create PAR2 files in each sub folders :ProcessFolder PUSHD %1 %par2_path% c -rr%par2_redundancy% -fo -rd2 -lr100 "%~2.par2" * POPD GOTO :EOF ENDLOCAL What I would like is to mount the "movies" and "movies without subtitles" folders as a map network drive and for the script to create in a drive called Y:\ the same folder structure and put the par2 files in each corresponding folder. The reason is with my current use it also write to parity when i generate the par2 files and when i move them to a separate disk outside of the array. Also if anyone use has better ideas i all for them. Thank you. par2.cmd Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.