onsdag, september 24, 2008

Extract multiple zip files with 7-zip (Windows)

The other day I needed to extraxt some ESX 3.x patches within one directory.
http://www.vmware.com/ allow downloading patches using small java applet.
But every patch is zipped archive containing many files.

Using one windowsserver for ESX patch depot I needed to extract all these files in one command. Since this Server already had 7-zip installed using that would be nice.


C:\>cd "Program Files\7-Zip"


EXECUTE!

C:\Program Files\7-Zip>7z.exe x G:\VMware_Patches\ESX350\*.zip -o"G:\VMware_Patches\ESX350\"

Processing archive....
....
....
Processing archive: G:\VMware_Patches\ESX350\ESX350-Update01.zip
Extracting ESX350-Update01Extracting ESX350-Update01\descriptor.xmlExtracting ESX350-Update01\contents.xmlExtracting ESX350-Update01\contents.xml.sig
...
...
Everything is Ok
Total:Archives: 89
C:\Program Files\7-Zip>

Now I want to check directories

C:\Program Files\7-Zip>dir /AD g:\VMware_Patches\ESX350

Directory of g:\VMware_Patches\ESX350
ESX350-200802301-BG2008-09-24
...
...

Seems ok!

DONE!