Hi, I have a little problem with a command line tool.
The command line tool I'm using is par2.exe (par2cmdline). Par2 files are used to check a specific set of rar archives for corruption and to repair them if necessary. This is mainly used in the newsgroups.
I'm using the following command to execute it with VB6:
I'm using a wildcard, because I want to check all par2 files in the folder without typing in the name of each par2 file. The problem is that it only checks the first one in the folder (alphabetical order), because it has no batch function.VB Code:
Private Sub Command1_Click() ShellAndWait (App.Path & "\par2.exe repair -- " & "D:\Files\*.par2"), vbHide End Sub
For example, I have these par2 files in one folder.
When I execute the above command, then it will only check File1.par2 (and corresponding rar archives) and after that it quits.Code:File1.par2 File24.par2 something.par2 testing.par2
Is there a way to loop through the folder and execute par2.exe on each file until it has checked all of them?
Thanks.




Reply With Quote