PDA

View Full Version : Create LOG file listing contents of Zip Files



swaggerbox
05-21-2013, 02:39 AM
I have several zip files on my "C:\My Report" drive. I want a LOG file created that provides a list of filenames (together with their directory structure) for each zipped file.

For example C:\My Report\05-2013\05-21-13\MyReport00123456.zip contains the following files:

001\Data01\File01.pdf
001\Data01\File02.pdf
001\Data01\File03.pdf
001\Data02\File04.pdf
001\Data02\File01.pdf

Is there a way we could generate MyReport00123456.LOG (filename patterned after the name of the zipped file), with the following information inside?

MyReport00123456
================
001\Data01\File01.pdf
001\Data01\File02.pdf
001\Data01\File03.pdf
001\Data02\File04.pdf
001\Data02\File01.pdf
================
Total: 4 Files

Any ideas to help get me started?