You helped me a lot in the past about batch files and now i need your help one more time.
I am creating a batch file for my photograp back ups which will make md5 hash files firstly,
then create parity files and latest write to DVD.
I managed to do for md5 and dvd writing but as for parity files i have difficulty.
I am using multipar for this which supports commnad line.
But in the batch files it only accepts the files at the root of the folder and ignore the files at the subfolders.
They gave a sample batch for this but i cant add this into my batch files.
please help me to add multipar batch file which accepts the files at the subfolders as well to my backup batch file.
best regards...
My batch files is;
======================backup======================================
:create hash file within each folder
"%ProgramFiles%\FastSum\fsum.exe" c:\denemesum /R /T:F /I:DT
:create hash file at the root
"%ProgramFiles%\FastSum\fsum.exe" c:\denemesum /R /T:R /I:DT /O
: create parity files
????????????????????
:create iso file
"%ProgramFiles%\ImgBurn\Imgburn.exe" /mode build /buildmode imagefile /src "C:\denemesum\" /dest "%homepath%\Desktop\PhotoBackUp.iso" /FILESYSTEM "ISO9660 + Joliet" /VOLUMELABEL "BACKUP%DATE%" /rootfolder yes /start /close /LOG ".\PhotoBackup_[DATE]-[TIME].log"
==================================================================
multipar batch file which creates individual PAR2 set in each sub-folder under a selected folder;
========================multipar==================================
@ECHO OFF
SETLOCAL
REM check input path
IF "%~1"=="" GOTO End
IF NOT EXIST "%~1" (
ECHO The path does not exist.
GOTO End
)
IF NOT "%~z1"=="0" GOTO End
REM set options for PAR2 client
SET par2_path="path of par2j.exe"
REM recursive search of sub folders
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 /rr20 /rd1 /rf3 "%~1\%~n1.par2" *
GOTO :EOF
:End
ENDLOCAL
==================================================================
Attached File(s)
-
backup.cmd.txt (556bytes)
Number of downloads: 4 -
multipar.cmd.txt (497bytes)
Number of downloads: 2



Help

Back to top










