Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript Will Run a Zip Utility To Extract Files 1

Status
Not open for further replies.

jerjim

Programmer
Jan 4, 2001
85
0
0
PH
Using VBScript I created a hierarchy of folders.
Now I have to populate those folders with files from several zip files. One Zip file to one folder.

What Zip utility can i run from VBSCript to unzip the contents of a zip file into a specified folder.

I tried using PkUnZip but it doesn't recognize long filenames.
 
You can try DynaZip or some other third-party software that will do this. Just curious did you try PKUnzip using quotes around the LFN (Long FileName)? Don't know if that would work. Good Luck! Greg Armstrong
A+ MCSE+I :)
 
FWIW, WinZip 8 includes a command-line interface, the same as pkunzip. See:

IIRC, pkunzip (because it is a DOS utility) doesnt support long file names. But, you can use the FileSystemObject to get the 8.3 short file name.

Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFile = oFSO.GetFile("C:\MyLongPath\MyFile.zip")
MsgBox "8.3 File Name is:" & oFile.ShortPath Jon Hawkins
 
Thanks guys, it looks like WinZip will do just fine.

I was trying the Windows version of pkzip (pkzipw) but I couldn't get it to extract files to a specific folder.
 
jerjim, How did you solve the zip problem?
How does one load the winzip32.exe using asp?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top