Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have few zip files that has at least 10000 files each. I would like to extract files into separate folders by year and month. How can I do that. I have Windows XP Pro.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Not a huge problem - you will need an automated file management software, and I recommend the free app Filesort here.

Filesort

What you do is this

  1. Use Filesort to establish rules based on date of the files to sort them into the desired folders.
  2. Set Filesort to start monitoring the folder you intend to dump all the contents of the zip files into.
  3. Set Filesort to process the files according to the rules every say 2 minutes.
  4. Start extracting all the contents of the zip files into the monitored folder, and Filesort will do the rest.

Let us know if it works aye mate?

share|improve this answer
    
Can it create folder by Year and in that folder by Month? That would help lot. I mean these files a log files for last 9 years... –  THEn Sep 1 '09 at 17:56
    
Yes Filesort will be able to do that - it's how creative you get with the rules. –  caliban Sep 1 '09 at 18:34

While I thought this would be possible with an option,
it appears that the standard ZIP tools do not support this.
There is however one way it could be done with some scripting
(choice of scripting is left for you).

I am assuming (of course) that you do not want to extract all the files first
and then sort them around (though, it sounds like a good idea).
Compare that with this scheme. Unless you get a better answer.

  1. List the archive contents with date and time information
    • catch this in a new text file
  2. Filter (using things like grep) the file into smaller files that form your desired date based sets
  3. Extract the archive using these files individually into specific directories

All these options will be supported by most compression tools.
I prefer 7-zip.

share|improve this answer
    
grep is for Linux. He is using XP. –  Macha Sep 1 '09 at 17:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.