• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 15230
  • Last Modified:

Dos Command line to run WINZIP /unzip <file>

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
moonunits
Asked:
moonunits
  • 4
  • 3
1 Solution
 
SteveWoodCommented:
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
 
moonunitsAuthor Commented:
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
 
SteveWoodCommented:
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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
moonunitsAuthor Commented:
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
 
SteveWoodCommented:
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
 
moonunitsAuthor Commented:
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
 
SteveWoodCommented:
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
 
rzvika2Commented:
you can also look at:
http://www.winzip.com/xcmdline.htm
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now