Jump to content
Sign in to follow this  
AdiZ

How to zip a file using AutoIT

Recommended Posts

AdiZ

Hi,

I'm new in the world of AutoIt.

I have a little code that export data from the registry to text files and put them on the desktop.

I would like to zip all these files together to one zip file.

How can I do it?

Thank you.

My code is:

; This script requires full Administrative rights
#requireadmin

MsgBox(0, "SupportUtil", "Click 'OK' to download the IMInfo file and create the IMData log file")

ShellExecuteWait("regedit.exe","/e IncrediReg_Install.txt HKEY_LOCAL_MACHINE\SOFTWARE\IncrediMail",@ScriptDir & "\")
ShellExecuteWait("regedit.exe","/e IncrediReg_Profile.txt HKEY_CURRENT_USER\SOFTWARE\IncrediMail",@ScriptDir & "\")

ProgressOn("Getting IncrediMail Data", "Progress...", "0%")
For $i = 10 to 100 step 10
    sleep(1000)
    ProgressSet( $i, $i & " %")
Next
ProgressSet(100 , "Done", "Complete")
sleep(500)
ProgressOff()

MsgBox(0, "IMData", "Please attach the 'IMData.cab' file on your Desktop to your reply.",0)

Share this post


Link to post
Share on other sites
HavikTech

You can use internal Windows feature, but there are some easy to use UDF for managing ZIP functions.

Such as: http://www.autoitscript.com/forum/index.php?showtopic=116565

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.