Solved

Using DOS to unzip a file

Posted on 2004-04-20
5
817 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
[X]
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
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Title # Comments Views Activity
Excel: Move files in a folder 8 80
Batch script to delete folder content 3 108
Reusing a former RAID Member as a data drive 18 159
how to diff two files 12 43
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…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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