Compress a presort folder in a script

All things related to the Script feature of AccuZIP6, including the Script Monitor.

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:

Compress a presort folder in a script

Post by Eric » Tue Dec 16, 2008 4:04 pm

If you want to compress a presort folder into a .zip file in a script, add this command to your script events:

Code: Select all

SET OLEOBJECT ON
oZipObject=CREATEOBJECT("dzactxctrl.dzactxctrl.1")
oZipObject.ItemList=["C:\Program Files\AccuZIP6 5.0\Demo\Presort Folder\*.*"]
oZipObject.ZIPFile=["C:\Program Files\AccuZIP6 5.0\Demo\Presort Folder.zip"]
oZipObject.ActionDZ = 4 
Chat with an AccuZIP6 technician weekdays from 7-4 PST with AccuZIP6 Live Online Support

Post Reply