简体   繁体   English

是否可以在Windows XP上使用.BAT命令解压缩.ZIP文件?

[英]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.

相关问题 如何使用Windows XP中的内部Windows XP选项在VBScript中解压缩文件 - How to unzip a file in VBScript using internal Windows XP options in 如何使用puppet脚本在Windows中解压缩zip文件 - How can I unzip a zip file in windows using puppet script Powershell脚本:解压缩文件并在zip文件中执行bat文件 - Powershell Script : Unzip files and execute bat file within the zip files 在Windows上以编程方式解压缩AES加密的zip文件 - Programatically unzip an AES encrypted zip file on Windows 使用7zip解压缩特定文件夹的命令 - Command to unzip a specific folder using 7zip 使用.Net 4.5 ZipFile,无法解压缩使用Windows zip压缩的文件(右键单击发送到Compressed) - Using .Net 4.5 ZipFile, cannot unzip a file zipped with Windows zip (right click send to Compressed) 使用for循环bat文件窗口进行多个命令调用 - Using for loop bat file windows for multiple command calls 如何使用bat文件响应命令行提示符(Windows) - How to respond to command line prompt using bat file (Windows) Windows move命令未使用bat将匹配文件移动到目标文件夹 - Windows move command not moving the matching file to destination folder using bat 如何在Windows XP上的startup.bat文件中设置HeapDumpOnOutOfMemoryError和HeapDumpPath - How to set HeapDumpOnOutOfMemoryError and HeapDumpPath in startup.bat file on Windows XP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM