Solved

Using DOS to unzip a file

Posted on 2004-04-20
5
809 Views
Last Modified: 2006-11-17
Hi Team

I have a winzip executable on my machine. I would like to create a batch file (.bat) to unzip files to a folder. How do I use  DOS to unzip the file to a specific folder on the D: drive. (FYI: Then number of files in this .zip file is unknown)

Thanks - Veronique
0
Comment
Question by:pollacsekv
5 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 10867971
If you type the executable name from a command prompt, does it open in the Winzip gui?
Try Start->Run->Command

yourfile.exe <enter>

What operating system and version of Winzip are you using?

This setting is usually passed into the executable for default unzip folder.
0
 

Author Comment

by:pollacsekv
ID: 10868080
If you type the executable name from a command prompt, does it open in the Winzip gui?
Try Start->Run->Command-
ANSWER: Yes

yourfile.exe <enter> - answer: GEC.zip

What operating system and version of Winzip are you using?
answer: version 8.0, on Windows 2000

Thanks
0
 
LVL 30

Accepted Solution

by:
SteveGTR earned 125 total points
ID: 10868205
Winzip 8 doesn't support a command line interface for DOS. Winzip 9 has a free add-on that has a command line interface. You might try downloading pkunzip from http://www.pkware.com/products/free_eval.html.

Then you could:

@echo off
c:
cd \yourdrive
pkunzip -o yourfile.zip

Good Luck,
Steve
0
 
LVL 9

Expert Comment

by:ChrisSchumann
ID: 10874853
You can try to find the old DOS version: PKZIP204G.EXE, or you can look for the FreeDOS version of ZIP, but I'm not sure it will work on the latest versions of Windows.
0
 
LVL 9

Expert Comment

by:gtkfreak
ID: 10880852
You can look at the winzip self extractor utility on the winzip site.

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question