Can I unzip a zip file using the .BAT command in Windows XP?

Can I unzip a zip file using the .BAT command in Windows XP? we have a .zip file, how to create a .BAT command file to unzip / unzip it to some folder. USE ONLY FOLDS WINDOWS XP programs and commands.

So .. How to do this? (sample code, please)

+4
source share
3 answers

Yes.

But this is due to the use of "scripting" and the use of System.FileSystemObject (a good keyword). You must use cscript / WSH , which can run VBScript or JScript (WSH 5.6 comes with XP). The general idea is here . There are other interesting β€œproblems” with this approach; operations are performed asynchronously, and a compression dialog box may appear, but can be performed using standard XP tools.

I would recommend downloading 7-zip . This is a standalone 200 ~ 400K command line executable (depending on version), but the initial "initial installation" requires an initial "installation". You do not need a GUI to run 7-zip.

+6
source

No, there is no command line support for the built-in zip / unzip library that ships with Windows XP. The only solution would be to use a decompress library.

+1
source

Source: https://habr.com/ru/post/1310399/


All Articles