0

I have one huge ZIP file, with 100s of directories and 1000s of files. These are also zipped ('nested' ZIP). What I want is to change the date/time attributes of all zipped ZIP files and 'core' files. Manually is not an option, would spend a day or 2 on it... I tried to find a program which can do this (BatchPurifier CAN do this (!), only for a certain set of file types so that doesn't help me). BulkFileChanger (tip from a friend) doesn't work, can't get into the ZIP.

2
  • What do you mean with 'core' files ?
    – albert
    May 11, 2018 at 16:28
  • Files that are not being a ZIP in a nested ZIP structure. May 12, 2018 at 0:06

1 Answer 1

1

Unzip the structure, use a touch utility to set all datetime stamps, zip again.

You may already have one on your disk, e.g. if it came with a development environment.

You can even do this without external programs.

3
  • I had the same idea but I think the problem here would be the zip files inside the zip files (recursive). One could unzip all sub-zip files as well but on rezipping it this would result in only one big zip file (one should not forget to removed the zip files). Other possibility would be to copy the zip file to a separate directory unzip, touch the files, rezip again, copy back the new zip file (note that here the recursive part has to be taken into account as well. new subdirectory etc.).
    – albert
    May 13, 2018 at 8:18
  • @albert I overlooked that - Recursively unzipping is possible but whether recursively zipping is again possible will depend on what's in the ZIP files. And as the OP says, those are both ZIP files and others. So we need something that keeps track of all those internal structures, then 're-constructs' the outermost ZIP. Can be done with a lot of batch programming still, if e.g. the ZIP are extracted to folders named like e.g. *origfilename.zipdir'
    – user416
    May 13, 2018 at 9:48
  • This becomes a batch file programming question that way. @Wouter if you want to go that way you can post your question on SuperUser as well. Make sure that you do not ask for a tool there (that would be off-topic).
    – user416
    May 13, 2018 at 9:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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