Link to home
Start Free TrialLog in
Avatar of sydneyguy
sydneyguyFlag for Australia

asked on

I require a unzip command line exe to simply extract files from the zip and place them in a directory

I require a simple unzip utility that will allow me to place a batch file in that will simply do
c:\run\unzip c:\test\upload.exe c:\dataextract\
and actually work
I have spent hours accross the web and either they do not down load or the trial versions do not run or they will only accept up to 8 charcters in the file name, or they will not unzip into another dir. It should not be this hard. I do not requre WINzip or any thing fancy just one that work
thanks for your help in advance
Avatar of kennethfine
kennethfine

The WinZip Command Line add-on will do what you want:
http://www.winzip.com/prodpagecl.htm

So will Winrar:
http://www.respower.com/page_tutorial_unrar
SOLUTION
Avatar of kennethfine
kennethfine

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
7Zip is a free app that has a GUI and CLI version - I highly recommend it :)

http://www.7-zip.org/
Avatar of sydneyguy

ASKER

I have downloaded 7-zip but cannot get it to run under the cmd editor I must be doing something wrong but not sure what
7-zip.jpg
This is what I do (use x to extract the archive):


C:\test>"c:\Program Files\7-Zip\7z.exe" x datelib.rar

7-Zip 4.42  Copyright (c) 1999-2006 Igor Pavlov  2006-05-14

Processing archive: datelib.rar

Extracting  kix\datelib - Copy.kix
Extracting  kix\datelib.kix
Extracting  kix\KIX32.EXE
Extracting  kix\kixtart.kix
Extracting  kix

Everything is Ok

C:\test>
Have now download and set up
C:\ZipGenius_6\zipgenius.exe c:\AUnzipTest\upload.zip
to try this program
the response I get back is
that it opens up the application ready to use but does not run under the cmd line string using the above code any ideas
this will work and this unzips them but unzips them in the dir were the bat file runs from not in the dir that the zip file resides and cannot move them to another dire
c:\7-Zip\7za.exe x C:\AAUnzipTestLandhere\upload.zip
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This works found a good site
http://prudentialscatterbrain.hp.infoseek.co.jp/7z-4.20_MANUAL/commands/extract.htm
which had the good syntx on it

c:\7-Zip\7za.exe e C:\AAUnzipTestlandHere\upload.zip -oc:\AAUnzipTestLandhere *.* -r
Thanks to both of you for your help it works I am up and going and I can now go to sleep. thanks again for your support and help