Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

par2 command line help

Featured Replies

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

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.