Solved

Dos Command line to run WINZIP /unzip <file>

Posted on 1998-05-20
8
14,577 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
 

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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now