AutoHotkey Community

It is currently May 27th, 2012, 10:17 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: May 26th, 2011, 11:42 pm 
sinkfaze wrote:
Assuming your zip is on the desktop:

Code:
Unz(A_Desktop "testzip.zip","C:\testzip")
return

Unz(sZip, sUnz)
{
   fso := ComObjCreate("Scripting.FileSystemObject")
   If !fso.FolderExists(sUnz)
       fso.CreateFolder(sUnz)
   ComObjCreate("Shell.Application").Namespace(sUnz).CopyHere(sZip "\*", 4|16)
}



im using ahk 1.0.48.05, am i missing something here? im trying to do this example of unzipping but I get call to nonexistent function, line 6 when i run it, its supposed to be stand alone?

I just want to unzip a folder of text files without a huge library to do zipping and all other stuff i dont need- does anyone know what i need to add to make this work?

thanks


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2011, 12:16 am 
ah functions are for ahk_l only

and the ones on page 1 need com.ahk, mystery solved, wtg irc guys :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 25th, 2011, 7:40 pm 
Offline

Joined: February 20th, 2011, 9:42 pm
Posts: 433
Location: Cache Creek B.C.
So... is there a way to set the compression level to "store" without any compression? I'm not looking to crunch down filesizes,
I would prefer to Zip stuff up as quickly as possible for making archives of Google Earth's cache files with Google Earth Cache Stasher.
I've got it zipping and unzipping perfectly, but it just takes too long with that compression applied. Thank you very much for some insight ::)
Aaron

_________________
Some of my scripts :).


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 26th, 2012, 4:57 am 
Offline
User avatar

Joined: November 7th, 2010, 2:48 am
Posts: 72
Location: Egret Island
Modified from shajul's functions and merge the zip and unzip functions. Please refer to:
http://www.autohotkey.com/forum/viewtop ... 649#523649

_________________
Recommended: AutoHotkey_L My code is based on it or similar versions, e.g. AutoHotkey_H.
Image
Together with AutoHotkey, we grow and march forward. No matter how the future will be, this period of days is still epic.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3

All times are UTC [ DST ]


Who is online

Users browsing this forum: specter333, XX0 and 26 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group