1823062 Members
3460 Online
109645 Solutions
New Discussion юеВ

File Extraction

 
Mxha
Occasional Contributor

File Extraction

I am trying to extract a file sitting in a sub-directory of a zipped folder via shell. I have tried the syntax: EXPAND EXAMPLE.ZIP NEWFOLDER but after extraction the folder becomes of type file. Please help
7 REPLIES 7
Piergiacomo Perini
Trusted Contributor

Re: File Extraction

Hi Mxha,

i think you have to use
"unzip"
(see this thread for more infos
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1063366
)

hth
regards
V.Manoharan
Valued Contributor

Re: File Extraction

Hi Mxha,
hope this is windows command for extracting file from cab/i386 folder compressed file.

In windows actually the example.zip will be exapanded (uncompressed) ,you will not get any new file.
for eg:
expand example.zip newfolder will expand the example.zip to nefolder file that is it.

in unix the funtionality is different.

please letme know which os your using?

regards
mano
Mxha
Occasional Contributor

Re: File Extraction

Thanks for the response guys. I'm using Windows O/S. I tried the "unzip" command already and got an error that says its not recognised etc.
spex
Honored Contributor

Re: File Extraction

Hi,

'unzip' Windows binary available here:
ftp://ftp.info-zip.org/pub/infozip/WIN32/

Example:
C:\> unzip arch d1/d2/myfile
Archive: arch.zip
inflating: d1/d2/myfile

Note that filenames/paths ARE case-sensitive with 'unzip'.

To check contents before extracting:
C:\> unzip -l arch

In the future, please remember to post Windows-related questions to a Windows forum.

http://forums1.itrc.hp.com/service/forums/categoryhome.do?categoryId=279

PCS
Arunvijai_4
Honored Contributor

Re: File Extraction

Hi,

Just try with "jar" either.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Mxha
Occasional Contributor

Re: File Extraction

Spex u r rite about the forum issue, my mistake I'm a new member. I have tried ur suggestion but it didnt work either I get error that says "uzip" is not a recognised command
spex
Honored Contributor

Re: File Extraction

Hi,

Welcome to the ITRC forums.

1) Download this self-extracting archive:
ftp://ftp.info-zip.org/pub/infozip/WIN32/unz552xN.exe

2) Move the archive to a directory in your path. 'echo %PATH%' to see your path.

3) Extract the file by running it.

4) 'cd' to the directory containing the .zip file.

5) unzip yourzipfile.zip FoLdEr1/fOlDeR2/TheFile

PCS