How to do a directory listing of ZIP files?

I have been tasked with going through a client’s file shares and looking for file types with a specific extension.  I did this easily using the dir command.

I am now being asked to create a similar listing, but for items in ZIP files.  I am hoping to do something similar to the dir command with the /b switch.

I found the article below.  My only concern with it is the format of the output.  It will require a bit of work to make it similar to the dir command the /b switch.

http://www.tech-recipes.com/rx/9356/7-zip-how-to-list-contents-of-a-folder-and-subfolder-of-zip-files-without-extracting-win-xpvista7-and-command-line/

I wanted to see if anyone had any suggestions on how to accomplish this task?
Thanks in advance.
rye004Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brad GrouxSenior Manager (Wintel Engineering)Commented:
This gentleman seems to have written a PowerShell script to do it - http://damashiuchi.wordpress.com/2011/02/19/get-child-items-in-a-zip-file-recursively-using-windows-powershell/

You can also use PowerShell for sorting and dumping files names to CSV or Text as needed as well.
0
Sir LearnalotCommented:
cd to the directory where you would like to list the files and run the following command:

dir /b *.zip
0
Lee W, MVPTechnology and Business Process AdvisorCommented:
Two things you can look at using - In Windows, look at the File Server Resource Manager - great tool for reporting on File Server usage and statistics.  Can generate reports too.

Or, you can run the command where X: is the drive you want to check:

DIR /S /B *.ZIP X:\ > X:\ZIPFiles.txt

The above command will search the ENTIRE DISK for ZIP files and report the full path (BUT NOT THEIR SIZE!) and save that information to a file in the root of the specified drive.

If you just want a sub folder, such as the "Users" sub folder, use:
DIR /S /B *.ZIP X:\Users > X:\Users\ZIPFiles.txt

Again, replace "X" with the drive letter you want.
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Justin YeungSenior Systems EngineerCommented:
powershell =P
Get-ChildItem -path c:\ -Recurse | ? {$_.extension -eq ".zip"}

Open in new window

0
rye004Author Commented:
After some research, I found the following namespace in .net4.5 that was able to accomplish what I needed: System.IO.Compression;
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sir LearnalotCommented:
Please close the issue by marking a solution. Have a great day
0
rye004Author Commented:
This ended up being the best solution for me.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.