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

Dos Command line to run WINZIP /unzip <file>

Posted on 1998-05-20
8
14,717 Views
Last Modified: 2013-12-29
Is there a command line that will unzip a zip file to a specific folder.
 ie:      [winzip{6.x} /unzip<filename C:\folder /now]
from a dos prompt?
or VB command button?
0
Comment
Question by:moonunits
  • 4
  • 3
8 Comments
 
LVL 1

Accepted Solution

by:
SteveWood earned 110 total points
ID: 1713213
The command format is:

    winzip[32].exe -e [options] filename[.zip] directory
where:
-e
Is required.

options
-o and -j stand for "Overwrite existing files without prompting" and "Junk pathnames", respectively. Unless -j is specified, directory information is used. Use -sPassword to specify a case-sensitive password. The password can be enclosed in quotes, for example, -s"Secret Password".

filename.zip
Specifies the name of the Zip file involved. Be sure to specify the full filename (including the directory).

directory
Is the name of the directory to which the files are extracted. If the directory does not exist it is created.

Hope this helps.

Steve
0
 

Author Comment

by:moonunits
ID: 1713214
Thanks.
I looked for all this in the 6.3 version's Help file and found nothing about lauching command line operations.

this information has been long awaited.

If it were possible to continue here Once more with the equivelent commannd line to zip files or filemask ...
ie: Zip c:\folder1 <filemask> c:\folder2 <filename.zip> /now

for this i have provided the food ..
0
 
LVL 1

Expert Comment

by:SteveWood
ID: 1713215
Hey Guess What?

Adding Files
The command format is:

    winzip[32].exe [-min] action [options] filename[.zip] files
where:
-min specifies that WinZip should run minimized. If -min is specified, it must be the first command line parameter.

action
-a for add, -f for freshen, -u for update, and -m for move. These actions correspond to the actions described in the section titled "Adding files to an Archive" in the online manual.

options
-r and -p correspond to the "Recurse Directories" and "Save Extra Directory Info" checkboxes in the Add and Drop dialog boxes. -ex, -en, -ef, -es, and -e0 options determine the compression method: eXtra, Normal, Fast, Super fast, and no compression. The default is "Normal". -hs includes hidden and system files. Use -sPassword to specify a case-sensitive password. The password can be enclosed in quotes, for example, -s"Secret Password".

filename.zip
Specifies the name of the Zip file involved. Be sure to use the full filename (including the directory).

files
Is a list of one or more files, or the @ character followed by the filename containing a list of files to add, one filename per line. Wildcards (e.g. *.bak) are allowed.


0
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 

Author Comment

by:moonunits
ID: 1713216
Excellent Answer Sreve :)
I Am going to be One Happy Zipper
If you care to continue this conversation, I am also looking for a commannd line to reboot the computer.
If you think this is too much too ask, I'll repost as a new message.
Thanks,
Moonunits.  




0
 
LVL 1

Expert Comment

by:SteveWood
ID: 1713217
The command line command tolet you reboot your computer is....

'drum roll please'.....

REBOOT (Win 95 anyway :-)  )

Hope this helps.

(This ones free - after all I am here to help)
0
 

Author Comment

by:moonunits
ID: 1713218
Hi Steve,
Like baseball__you've been "very very good to me"

[About reboot]
the command "reboot" must rely on a loaded external application,
ie: reboot.com or reboot.exe, in the path dir(s).
I have a new one which works very well although i do not keep it in the path..in which case [commandline__"reboot"]does noting.
perhaps /reboot works as a switch for Rundll32 or or similar win95 procedure.
I don't know... :)
But having recently found this new app which works well because it promps you to close open files during shutdouwn i will use api calls to it.
Thanks again :)

__________"Hey Honey, it's working!"_________


0
 
LVL 1

Expert Comment

by:SteveWood
ID: 1713219
Glad to be of service.

Hope the new app works out.  No idea about "reboot" - works great on my machine.  Have to say that over the last few months I have lost track of what has been installed/uninstalled on it, so it could be a left over from something :)  Ho hum!
0
 

Expert Comment

by:rzvika2
ID: 2903078
you can also look at:
http://www.winzip.com/xcmdline.htm
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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

840 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