View Single Post
  #5  
Old 02-05-2009, 09:43 AM
Infina Infina is offline
Senior Members
 
Join Date: Feb 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
I have basic batch scripting experience, but I have been trying. Also, the rar's are not solid, so it can be specified which files to extract.
So far, I have:
1. paext generating a list of the contents of each rar and outputting to a text file.
2. head.bat (a batch that reads in the 1st line from a text file) to send to another text file.
3. paext again to read in the first file name from the previous text file and extract only that file.
4. it does work, but what I need now is to somehow incorporate this process in a for loop so it's done automatically to all rars in a directory

here is my wack-ass code lol:

for /d %%X in (DIR\) do call cc2.bat

[cc2.bat]
c:
cd c:\pacl\
paext -v -d "DIR\*.cbr" | find /i ".jpg" > x:\temp.txt && call x:\head.bat 1 x:\temp.txt > x:\firstfile.txt
paext -px:\temp "DIR" @x:\firstfile.txt
^-output directory

What happens is that it only extracts the 1st file from the 1st archive, i.e. it doesn't go through all of the archives

Last edited by Infina; 02-05-2009 at 09:47 AM.
Reply With Quote