Jump to content

How to zip a file using AutoIT


AdiZ
 Share

Recommended Posts

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)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...