• Index
  •  » Wishlist
  •  » High need of Folder Recursion and Unicode file name support

#26 2010-03-07 19:28:05

persicum
Veteran
Registered: 2007-09-25
Posts: 131

Re: High need of Folder Recursion and Unicode file name support

Dear Sunny Saini!
Probably you made a wrong choice. ICEECC is the most comprehensive product with some useful additional features such as queues an so on. It has not only available memory determination, it has also L1 and L2 cache autoconfiguration as well as chipset programming. It also uses RS-codes to protect headers too. As compared, QuickPAR and especially MultiPAR are simple dabbler’s home-made hand-made things. Moreover, you can specify desirable memory usage in the ICEECC menu. If you have troubles with Win7 upon 1G of RAM you should post request to ICEECC support forum.

I will make more huge benchmarks of all progz soon, when I finish yet another fast codes in my prog. Year, annoying characters often appear while saving HTML pages without rename. I like to rename them.

Offline

 

#27 2010-06-06 16:20:44

crushing iniquity
Member
Registered: 2010-06-06
Posts: 4

Re: High need of Folder Recursion and Unicode file name support

directory recursion
+1

thread hijacking
-1

Offline

 

#28 2010-07-09 23:25:08

mr_toad
Member
Registered: 2010-07-07
Posts: 3

Re: High need of Folder Recursion and Unicode file name support

I am trying to use multipar, and I just don't understand how subfolders are supported. I would like to be able to point to a folder, select a redundancy percentage (say 15% maybe) and then have the program make par2 files INSIDE each subfolder for each individual subfolder. I could do this by going into each subfolder and making a set of par2 files for each subfolder, but that would take forever with the huge amount of subfolders I have. And I need each subfolder to have it's own set, so that if I change the contents of a particular subfolder, only that subfolder will be affected. Multipar doesn't seem to do that, and I thought that it supported subfolders.

I did find a script posted somewhere that will automate it, just drag and drop the main folder onto the batch file and it's done, but it makes 1 recovery block for each file, which doesn't work for me at all. For just a few flac files, for instance, it makes a ridiculously small recovery set (like 1.5 % redundancy), yet for files with hundreds of images in them, a huge redundanct is created (like 80%). I need to be able to set the redundancy to my own choosing and have it be the same for each subfolder individually. Is that possible? The batch file is close to doing what I need if I could only set a default of say 15% redundancy.

Here is the batch file if anybody wants to play with it. By default it will name par2 files as parity, and will process all files in all subfolders, using a block size of 384000, and a recovery block count equal to that of the number of files in the folder. I take no credit for this batch file, I just found it posted elsewhere. It requires Glob.exe and par2.exe to run. Can anybody figure out how to optimize this to run at a set redundancy like 15%?


@ECHO OFF

SET ext=*
SET pathToGlob=GLOB.EXE
SET pathToPar2=PAR2.EXE

PUSHD %1
FOR /D /r %%G IN (*.*) DO CALL :ProcessFolder "%%G"
POPD

PAUSE
GOTO :EOF

:ProcessFolder
PUSHD %1
SET fileCount=0
FOR %%B IN (*.%ext%) DO CALL :IncreaseCounter
IF %fileCount% EQU 0 GOTO :EOF
%pathToGlob% -c -v %pathToPar2% c -c%fileCount% -s384000 "parity.par2" *.%ext%
POPD
GOTO :EOF

:IncreaseCounter
SET /A fileCount=%fileCount% + 1
GOTO :EOF

Offline

 

#29 2010-07-24 02:50:34

Yutaka Sawada
Active
Registered: 2008-07-11
Posts: 22

Re: High need of Folder Recursion and Unicode file name support

Hello, mr_toad. I am Yuatka Sawada, a developer of MultiPar. I think there is a confusion of sub-folders. While MultiPar can protect all files in folders at once, you want to protect files in each folder only. You don't need a PAR2 client which support directory tree.

Because I am too lazy to create a new GUI for your usage, I modified the batch file you showed above and write a help (batch.htm). I modified my par2j.exe to set block count for the usage also. They are contained in MultiPar v1.1.6.0 or later.

As you are using par2cmdline now, I write the batch file for par2cmdline(par2.exe) here. You should read a manual of MS-DOS command, and README of par2.exe, so that you can modify the batch file by yourself.



@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=par2.exe
SET par2_blocks=800
SET par2_redundancy=15


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 -b%par2_blocks% -r%par2_redundancy% "%2.par2" *
POPD

GOTO :EOF

ENDLOCAL

Offline

 
  • Index
  •  » Wishlist
  •  » High need of Folder Recursion and Unicode file name support

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB

QuickPar © 2002–2008 Peter B. Clements