in reply to Re^3: help with unraring
in thread help with unraring

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^5: help with unraring
by ww (Archbishop) on Apr 24, 2012 at 14:50 UTC
    Unless there is some dependancy you haven't disclosed -- say, for example, that the content of the file currently being processed determines which file to extract and process next -- your desire to extract them one at a time is not a war-stopper; it is merely one alternative approach:
    Pseudocode: un7zip ($archive); @todo = readdir (extracted files); for $todo(@todo) { process as you wish... }
Re^5: help with unraring
by Argel (Prior) on Apr 24, 2012 at 19:20 UTC
    Most decompression/compression programs support extracting/adding individual files from/to an archive. This should work, but I only tested it against a .7z file. But I am not aware of any reason why it would not work with .rar files.
    7z.exe e <archive_name.rar> <path_to_file_in_archive>
    Here's an example. Given a 7-zip file called test.7z, containing:
    test test/foo test/bar
    This should extract just 'bar' to your current working directory:
    7z.exe e test.7z test/bar

    Elda Taluta; Sarks Sark; Ark Arks
    My deviantART gallery