Jump to content
Sign in to follow this  
kpu

Use AutoIt to compress Files

Recommended Posts

kpu

I've created a script that exports a bunch of registry keys and I'm tring to figure out a way to zip them up using wild crads such as *.reg. I've played with 7-zip, but it won't work unless it's installed. Is there a way to do this using Autoit?

Basically I'm looking for a compression tool to zip files with the ablitity to use wild cards and set a password if possible. Anyone have any ideas? :P

Share this post


Link to post
Share on other sites
AutoChris

I've created a script that exports a bunch of registry keys and I'm tring to figure out a way to zip them up using wild crads such as *.reg. I've played with 7-zip, but it won't work unless it's installed. Is there a way to do this using Autoit?

Basically I'm looking for a compression tool to zip files with the ablitity to use wild cards and set a password if possible. Anyone have any ideas? :P

Unless the makers of 7-Zip have drastically changed their program in the last 24 hours, you do not need to "install" 7-Zip. All you need is the executable, which you can #include in your script. I use 7-Zip in this way all of the time... literally, since I zip up SQL backup files nightly using AutoIt and 7-Zip.

Share this post


Link to post
Share on other sites
kpu

Unless the makers of 7-Zip have drastically changed their program in the last 24 hours, you do not need to "install" 7-Zip. All you need is the executable, which you can #include in your script. I use 7-Zip in this way all of the time... literally, since I zip up SQL backup files nightly using AutoIt and 7-Zip.

I've copied the file(s) to a directory and try and run 7z.exe from the a dos line and I get the following error message:

Error:

There are no installed archive handlers

Any idea?

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.