Solved

Using DOS to unzip a file

Posted on 2004-04-20
5
799 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now