Tutorial :Is it possible to unzip .ZIP file using .BAT command on Windows XP?



Question:

Is it possible to unzip .ZIP file using .BAT command on Windows XP? we have file.zip how to create a .BAT commands file to unzip\unpack it to some folder. USING ONLY NATIVE WINDOWS XP programms and commands.

So.. How to do such thing? (code example, please)


Solution:1

Yes.

But it involves using "scripting" and the use of System.FileSystemObject (a good keyword). You should be able to use cscript/WSH which can run VBScript or JScript (WSH 5.6 comes with 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.

I would recommend downloading 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. You don't need the GUI to run 7-zip.


Solution:2

Short answer: No. Explanation: https://serverfault.com/questions/39071/does-windows-have-a-built-in-zip-command-for-the-command-line


Solution:3

No, there is no command line support for the native zip/unzip library that comes with windows XP. The only solution would be to use a uncompressing library.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »