first commit
This commit is contained in:
61
pages/Scripts/Recursive Par2 creation.md
Normal file
61
pages/Scripts/Recursive Par2 creation.md
Normal file
@@ -0,0 +1,61 @@
|
||||
title:: Recursive Par2 creation
|
||||
updated:: 2022-01-30 22:42:55+00:00
|
||||
created:: 2022-01-30 22:42:30+00:00
|
||||
|
||||
Recursive Par2 creation
|
||||
|
||||
```
|
||||
|
||||
@ECHO ON
|
||||
|
||||
SETLOCAL
|
||||
|
||||
REM check input path
|
||||
|
||||
IF "%~1"=="" GOTO End
|
||||
|
||||
IF NOT EXIST "%~1" (
|
||||
|
||||
ECHO The path does not exist.
|
||||
|
||||
GOTO End
|
||||
|
||||
)
|
||||
|
||||
IF NOT "%~x1"=="" (
|
||||
|
||||
ECHO The path is not folder.
|
||||
|
||||
GOTO End
|
||||
|
||||
)
|
||||
|
||||
REM set options for PAR2 client
|
||||
|
||||
SET par2_path="C:\\Users\\stuar\\Downloads\\sstent\\AppData\\Local\\MultiPar\\par2j64.exe"
|
||||
|
||||
REM recursive search of subfolders
|
||||
|
||||
PUSHD %1
|
||||
|
||||
FOR /D /R %%G IN (*.*) DO CALL :ProcEach "%%G"
|
||||
|
||||
POPD
|
||||
|
||||
GOTO End
|
||||
|
||||
REM run PAR2 client
|
||||
|
||||
:ProcEach
|
||||
|
||||
ECHO create for %1
|
||||
|
||||
%par2_path% c /fo /sm2048 /rr5 /rd1 /rf3 /lc+32 "%~1\\%~n1.par2" *
|
||||
|
||||
GOTO :EOF
|
||||
|
||||
:End
|
||||
|
||||
ENDLOCAL
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user