Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Using DOS to unzip a file

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 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