Sign in to follow this  
Followers 0
locutus243

Opening or Extracting a zip file

4 posts in this topic

Hi Guys,

I want a script that will extract a zip file and unzip it using IZArc and extract the data into another folder.

If this isn't possible then perhaps just running the file will open the extractor??

Does anybody know if this is possible and how to do it??? If I can't extract the files with AutoIT, how do I open a zip file as FileOpen only works for text and Run for executables.

Thanks

Mark

Share this post


Link to post
Share on other sites



Hi!

Read the FAQ section.

It works with the dos command start.

peethebee


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Share this post


Link to post
Share on other sites

Hey Pee,

Thanks for the help. Where is the FAQ section???

I had a look in the help file and found the _RunDos function but am still a little unsure how to use it. For example, if I have a file called Marks Zip File.zip on the desktop, how would I write the function in my script???

Thanks

Mark

Share this post


Link to post
Share on other sites

Hi!

You could give the file to extract as param to the exe of your zip program. See its help file to get the syntax. In that case you would use the Run command.

You find the FAQ in the AutoIt help file in your AutoIt dir. Please have a look at it before posting here.

Try this one:

_RunDos("start " & @DesktopDir & "\yourfile.zip")

(this code is not tested. Please post any problems with it!)

peethebee


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

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  
Followers 0