Unzip (extract) a file with a command

Build your list of AccuZIP6 commands by requesting commands and sharing commands with other users

Moderators: Chrissy, Steve, Terry, Donna, Dave, Eric, MartyH, Kristen, Geoff, Vince

Post Reply
User avatar
Eric
Moderator
Posts: 1910
Joined: Tue Sep 19, 2006 3:29 pm
Contact:

Unzip (extract) a file with a command

Post by Eric » Tue Apr 21, 2009 12:04 pm

To extract or unzip a .zip file with the command feature, open a database and pull down the Edit menu to Command, then run this command:


SET OLEOBJECT ON
OZIPOBJECT=CREATEOBJECT("DUZACTXCTRL.DUZACTXCTRL.1")
OZIPOBJECT.FILESPEC =["*.*"]
OZIPOBJECT.DESTINATION =["C:\WORKING\IN\SAMPLE\"]
OZIPOBJECT.ZIPFILE=["C:\WORKING\IN\SAMPLE.ZIP"]
OZIPOBJECT.ACTIONDZ = 8

In the command above, change the two paths in red to the correct paths.
Chat with an AccuZIP6 technician weekdays from 7-4 PST with AccuZIP6 Live Online Support

Post Reply