Clever1mba Posted May 11, 2005 Posted May 11, 2005 Hello every one i have one problem i want to know how extract files to zip foldermy zip folder got 3 files autoit_1.exe, autoit_2.exe, autoit_3.exe and zip folder uploded at website like www.domain.com/myfiles.zipnow plz help to extract these file in drive
Ejoc Posted May 11, 2005 Posted May 11, 2005 Winzip or 7-Zip can extract files and folders in a zip file... Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs
MSLx Fanboy Posted May 11, 2005 Posted May 11, 2005 if its an xp (possibly 2000) you can use the dos command compact /U. Just type compact /? for more detailed information. Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
MSLx Fanboy Posted May 11, 2005 Posted May 11, 2005 (edited) Nevermind, that's for file compression, not archival files. I'll look for a CMD level command for zip folders... PowerArchiver has a command-line version...I used to use it for some of my scripts, but I haven't had to use it lately. I think you need a license...but you might be able to download a 'trial' Edited May 11, 2005 by MSLx Fanboy Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
MHz Posted May 11, 2005 Posted May 11, 2005 Hello one problem is that we donno remote system have PowerArchiver so i should give them solution without using PowerArchiver can we USE CMD FOR zip file format or another solution u have for extracting files<{POST_SNAPBACK}>You could use a freeware program called CabPack. This will make a *.cab file which an OS can expand ( extract ).1. Cab your files.2. Ensure destination directory exists for expanding it. ( DirCreate() )3. Use command like expand compressed.cab -F:* DestinationFolderExtrac32.exe could be used also, if available ?
CyberSlug Posted May 11, 2005 Posted May 11, 2005 This should help:http://www.autoitscript.com/forum/index.php?showtopic=9551 Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
MSLx Fanboy Posted May 11, 2005 Posted May 11, 2005 Yet I've never really understood why Windows OSes can only expand, not compress, files into .cab files. Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
MHz Posted May 12, 2005 Posted May 12, 2005 Yet I've never really understood why Windows OSes can only expand, not compress, files into .cab files.@MSLx FanboyOh but, MakeCab can make *.cab files. Which a latter OS will have. If it is more then 1 file, then you need to create a directive file. This is not as simple as typing a command line. A simple method is to use a script or a program would create the directive and cab the files. Instructions on directives, are supplied with the program link that I supplied.Pity that CabArc is not with an OS, as it is easier to create cabs with. @asimzameerGlad it worked for you.
MHz Posted May 17, 2005 Posted May 17, 2005 (edited) TryRunWait('EXPAND -r "' & @SystemDir & '\Myfiles.cab" -F:* "' & @SystemDir & '\"', "", @SW_HIDE)Inverted comma's maybe your problem ? Edit: You can also use the copy /b command with extac32.exe to make an SFX.That would extract into the same directory.copy /b extrac32.exe+Myfiles.cab Myfiles.exeThen you can run the exe (sfx cab) without any special command, and it will self extract.Edit2: Noticed you had the -F:* switch missing also. I have added it. Edited May 17, 2005 by MHz
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now