[英]Is it possible to unzip .ZIP file using .BAT command on Windows XP?
Is it possible to unzip .ZIP file using .BAT command on Windows XP? 是否可以在Windows XP上使用.BAT命令解压缩.ZIP文件? we have file.zip how to create a .BAT commands file to unzip\\unpack it to some folder. 我们有file.zip如何创建.BAT命令文件解压缩\\解压缩到某个文件夹。 USING ONLY NATIVE WINDOWS XP programms and commands. 仅使用NATIVE WINDOWS XP程序和命令。
So.. How to do such thing? 那么......怎么办这样的事情? (code example, please) (代码示例,请)
Yes. 是。
But it involves using "scripting" and the use of System.FileSystemObject (a good keyword). 但它涉及使用“脚本”和使用System.FileSystemObject (一个好的关键字)。 You should be able to use cscript/WSH which can run VBScript or JScript (WSH 5.6 comes with XP). 您应该能够使用可以运行VBScript或JScript的cscript / WSH (WSH 5.6附带XP)。 The general idea is here . 一般的想法在这里 。 There are some other interesting "issues" with this approach though; 不过,这种方法还有一些其他有趣的“问题”; the operations runs asynchronously and the compression dialog box may appear -- but it can be done using standard XP tools. 操作以异步方式运行,可能会出现压缩对话框 - 但可以使用标准XP工具完成。
I would recommend downloading 7-zip . 我建议下载7-zip 。 It is a 200~400k standalone command-line executable (depending on version), but it requires an initial "install" to grab the executable first. 它是一个200~400k的独立命令行可执行文件(取决于版本),但它需要初始“安装”才能首先获取可执行文件。 You don't need the GUI to run 7-zip. 您不需要GUI来运行7-zip。
No, there is no command line support for the native zip/unzip library that comes with windows XP. 不,Windows XP附带的本机zip / unzip库没有命令行支持。 The only solution would be to use a uncompressing library. 唯一的解决方案是使用解压缩库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.