Solved

Dos Command line to run WINZIP /unzip <file>

Posted on 1998-05-20
8
14,889 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
[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
  • 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
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Configuring Remote Assistance for use with SCCM
When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

636 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