- Aug
- 184
- 5
I fear I must be doing wrong, but I can't seem to figure out what it is. I'm trying to do what seems to me like something pretty basic with the unzip command. I have a zip file, and I want to extract its contents (preserving directory structure) into a target folder. For sake of example, let's say the name of the file is "File.zip" and the name of the output folder is "Output". Here's the command I use:
unzip /D File.zip Output
What I always get is an error telling me it can't find "Output". If I create that folder I still get the same error. The help file shows the format of the command as "UNZIP [/C /D /E /F /Nt /O /Q /S"password" /U /V] ziparchive path file", so I expect that I'm telling it to unzip "File.zip" into a folder named "Output", but that's clearly not what's happening. Can someone enlighten me? Thanks.
unzip /D File.zip Output
What I always get is an error telling me it can't find "Output". If I create that folder I still get the same error. The help file shows the format of the command as "UNZIP [/C /D /E /F /Nt /O /Q /S"password" /U /V] ziparchive path file", so I expect that I'm telling it to unzip "File.zip" into a folder named "Output", but that's clearly not what's happening. Can someone enlighten me? Thanks.