简体   繁体   中英

How to open and list contents of a zip file using windows command prompt?

In my svn repository, there are a lot of zip archives containing images. Recently we added a lot of new images. But some images are missing in some zip archives. How can I check whether an image is available inside a zip archive or not, from the command line?

I can check that a zip archive exists using this command:

svn info svn://ip/test/101.zip

Because my repository is large, my repo browser takes a long time to load. How can I check that an image is available or not inside a zip archive? Please help.

Thanks

There is no way to open the zip file on the server, and search there for the contents. So you have to download the zip files to the client, list there the contents, and see if it matches. Depending on the zip command and the grep possibilities you have, this will be implemented differently.

The best way to do this is using third party tools for searching inside svn repositories. The most well-known search tool for svn is svn-search which is freely available on sourceforge. It can search inside .txt, .pdf, .doc, .zip and many other file formats. Use this link to get the tool

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM