简体   繁体   English

如何使用Windows命令提示符打开和列出zip文件的内容?

[英]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. 在我的svn存储库中,有很多包含图像的zip存档。 Recently we added a lot of new images. 最近,我们添加了许多新图像。 But some images are missing in some zip archives. 但是某些zip档案中缺少一些图像。 How can I check whether an image is available inside a zip archive or not, from the command line? 如何从命令行检查zip存档中是否有图像?

I can check that a zip archive exists using this command: 我可以使用以下命令检查zip存档是否存在:

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? 我如何检查图像是否在zip存档中可用? Please help. 请帮忙。

Thanks 谢谢

There is no way to open the zip file on the server, and search there for the contents. 无法打开服务器上的zip文件,并在其中搜索内容。 So you have to download the zip files to the client, list there the contents, and see if it matches. 因此,您必须将zip文件下载到客户端,在其中列出内容,然后查看其是否匹配。 Depending on the zip command and the grep possibilities you have, this will be implemented differently. 根据zip命令和grep的可能性,实现方式会有所不同。

The best way to do this is using third party tools for searching inside svn repositories. 最好的方法是使用第三方工具在svn存储库中进行搜索。 The most well-known search tool for svn is svn-search which is freely available on sourceforge. svn最著名的搜索工具是svn-search,可在sourceforge上免费获得。 It can search inside .txt, .pdf, .doc, .zip and many other file formats. 它可以搜索.txt,.pdf,.doc,.zip和许多其他文件格式。 Use this link to get the tool 使用此链接获取工具

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Windows命令提示符打开firefox书签 - How to open a firefox bookmark using windows command prompt 如何在Windows命令提示符下对文件名列表进行排序? - How do I sort a list of file names in the Windows command prompt? 从命令提示符或Windows 7/8跳转列表菜单打开sln文件时,如何添加默认的“以管理员身份运行”? - How do I add a default Run As Administrator when I open a sln file from the command prompt or Windows 7/8 Jump List menu? 如何在Windows中打开以“ shell>”开头的命令提示符? - How to open command prompt starting with “shell>” in windows? 如何在Windows命令提示符下将文件内容连接到环境变量? - How do I concatenate contents of a file to an environment variable in Windows Command prompt? 如何使用bat文件响应命令行提示符(Windows) - How to respond to command line prompt using bat file (Windows) 如何使用命令提示符在Windows中查找特定文件 - How to find a specific file in windows using command prompt 如何从文件打开命令提示符 - How to open the command prompt from a file 如何使用Windows批处理命令删除“没有扩展名的文件”的所有内容 - How to Delete all contents of a “File with no extension” using windows batch Command 如何在Windows命令提示符下获取文件? - How to source a file in Windows command prompt?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM