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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

zipping and unzipping files

Status
Not open for further replies.

collierd

MIS
Dec 19, 2001
509
DE
Hello

Is there a way, using vbscript, to automate the zipping and unzipping of files

Thanks

Damian.
 
other than calling winzips command line methods etc using a Shell.Run i would say no, vbscript doesnt have any built in zipping.
you might be able to use WMI and 'compression' but i wouldnt think that is what you are really after
 
I agree with mrmovie, I don't know of anything for this in WSH, IE, ASP, or Office programs. I'm not sure what script host you're talking about though. There sure isn't anything in the VBScript engine itself.

It comes down to two options:
[ul][li]Find/buy an ActiveX component[/li]
[li]Run an external utility via .Run, .Execute, .InvokeVerb, or some other method of WScript.Shell or Shell.Application[/li][/ul]
I'm not sure how "quietly" WinZip will run. You might consider alternatives like InfoZip's zip.exe and unzip.exe or FreeByte Zip, which are both free (unlike WinZip which is shareware).
 
Thanks

Should be able to work it out from there
 
I have to deal with a lot of legacy systems and this also works. Enjoy Bob

returncode=msgbox ("mount a 3.5 diskette for backup",65,"backup start")
if returncode=1 thenSet ss = CreateObject("WScript.Shell")
ss.run "COMMAND /C C:\util\pkzip.exe a:master77.zip y:\rds\rds77\master.txt ",1,TRUE
set ss = nothing msgbox "backup is done please remove the diskette",64,"backup finished"
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top