Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pkzip

Status
Not open for further replies.

tlucier

Instructor
Sep 14, 2001
7
0
0
US
What is the command line syntax for using pkzip in Dos mode
 
pkzip dest.zip source.xxx Ed Fair
efair@atlnet.com

Any advice I give is my best judgement based on my interpretation of the facts you supply.

Help increase my knowledge by providing some feedback, good or bad, on any advice I have given.

 
Ed thanks for the quick answer!!!

I will try to be more specific. I am working on a machine where Windows is corrupt and I will have to reformat the hard drive. Before I do that we are saving some data file in DOS mode. I have a couple files that are larger than 1.44 mb, so rather than using the copy command, I thought I would use PKZIP to do it, but it's been so long since I have used pkzip I can't remember the line syntax.

I will use a specific file example. We have an access file named Service.dbm that is in the mydocuments folder. I want to zip it to a floppy. What exactly would be the line syntax to do this. I put the Pkzip program in the root directory of C:

Thanks, Todd
 
c:\pkzip a:\service.zip c:\mydocu~1\service.dbm.
By using full path names it doesn't matter where you are. It would probably be better to zip to a temporary directory then copy from there. That would give you a first shot at checking file sizes.
How about reinstalling over the top. That usually gets rid of the glitches. Reformatting opens other cans of worms. Ed Fair
efair@atlnet.com

Any advice I give is my best judgement based on my interpretation of the facts you supply.

Help increase my knowledge by providing some feedback, good or bad, on any advice I have given.

 
PKZIP (R) FAST! Create/Update Utility Version 2.04g 02-01-93
Copr. 1989-1993 PKWARE Inc. All Rights Reserved. Shareware Version
PKZIP Reg. U.S. Pat. and Tm. Off. Patent No. 5,051,745


PKZIP /h[1] for basic help PKZIP /h[2|3|4] for other help screens.


Usage: PKZIP [options] zipfile [@list] [files...]


Simple Usage: PKZIP zipfile file(s)...
| | |
Program ----------------- | |
| |
New zipfile to create ---------- |
|
File(s) you wish to compress ----------

The above usage is only a very basic example of PKZIP's capability.


Press 2 for more options (including spanning & formatting), press 3 for
advanced options, 4 for trouble shooting options, any other key to quit help.
PKZIP (R) FAST! Create/Update Utility Version 2.04g 02-01-93
Copr. 1989-1993 PKWARE Inc. All Rights Reserved. Shareware Version
PKZIP Reg. U.S. Pat. and Tm. Off. Patent No. 5,051,745


PKZIP /h[1] for basic help PKZIP /h[2|3|4] for other help screens.


Usage: PKZIP [options] zipfile [@list] [files...]


Simple Usage: PKZIP zipfile file(s)...
| | |
Program ----------------- | |
| |
New zipfile to create ---------- |
|
File(s) you wish to compress ----------

The above usage is only a very basic example of PKZIP's capability.


Press 2 for more options (including spanning & formatting), press 3 for
advanced options, 4 for trouble shooting options, any other key to quit help.
PKZIP (R) FAST! Create/Update Utility Version 2.04g 02-01-93
Copr. 1989-1993 PKWARE Inc. All Rights Reserved. Shareware Version
PKZIP Reg. U.S. Pat. and Tm. Off. Patent No. 5,051,745





2
PKZIP /h[1] for basic help PKZIP /h[2|3|4] for other help screens.


Usage: PKZIP [options] zipfile [@list] [files...]


Simple Usage: PKZIP zipfile file(s)...
| | |
Program ----------------- | |
| |
New zipfile to create ---------- |
|
File(s) you wish to compress ----------

The above usage is only a very basic example of PKZIP's capability.


Press 2 for more options (including spanning & formatting), press 3 for
advanced options, 4 for trouble shooting options, any other key to quit help.
Usage: PKZIP [options] zipfile [@list] [files...]

-a Add files
-b[drive] create temp zipfile on alternative drive
-d Delete files
-e[x,n,f,s,0] use [eXtra|Normal (default)|Fast|Super fast|NO compression]
-f Freshen files
-l display software License agreement
-m[f,u] Move files [with Freshen | with Update]
-u Update files
-p|P store Pathnames|p=recursed into|P=specified & recursed into
-r Recurse subdirectories
-s[pwd] Scramble with password [If no pwd is given, prompt for pwd]
-v[r][m][t][c] View .ZIP [Brief][Reverse][More][Technical][Comment] sort by
[d,e,n,o,p,s] [Date|Extension|Name|natural Order(default)|Percentage|Size]
-&[f|l|u Span disks [Format|format Low density|Unconditional format|
ul|w|v] Unconditional Low density|Wipe disk|enable dos Verify|
[s[drive]] Back up entire disk w/ subdirs (-rp) [drive to back up]]

*** For more information, please consult the user manual ***
Press 1 for basic options, 3 for advanced options, 4 for trouble shooting
options, any other key to quit help.




3
Usage: PKZIP [options] zipfile [@list] [files...]

-a+ clear archive Attribute after compression
-c create/Edit Comments for all files
-C add Comments for new files only
-i[-] add files with archive Attribute set [don't turn attribute off]
-j|J<h,r,s> mask|don't mask <Hidden/System/Read-only> files (default=jhrs)
-k Keep original .ZIP file date
-o set .ZIP file date to the latest file in .ZIP file
-q enable ANSI codes in comments
-t[date] take files NEWER than or EQUAL to date (default=today)
-T[date] take files OLDER than date (default=today)
-w|W<h,s> include|exclude <Hidden, System> files (default=Whs)
-x<file> eXclude specified file
-x@list eXclude file(s) in specified list file
-z create or modify .ZIP comment
-! add authenticity verification to .ZIP file (registered vers only)
-$[drive] save Volume label in .ZIP file (default = current drive)
-@list generate list file
-= open file in compatibility mode (bypass share)
Press 1 for basic options, 2 for other options (including spanning and
formatting), 4 for trouble shooting options, any other key to quit help.





4
-- TROUBLE SHOOTING OPTIONS --

If you experience difficulty with PKZIP, please consult your manual.
If problems continue, please document the problem as well as possible
and contact PKWARE technical support.

9025 North Deerwood Drive
Brown Deer, WI 53223

Support BBS: 414-354-8670
Fax: 414-354-8559

-3 Disable 32-bit instruction usage on 80386 or higher CPU's
-^ Echo the command line
-+ Disable Expanded Memory (EMS) usage
-- Disable UMB/HMA Memory (XMS) usage
-~ Disable Network usage
-) Disable 32 bit DPMI usage
-( Use &quot;Slow&quot; MemCopy

Press 1 for basic options, 2 for other options (including spanning and
formatting), 3 for advanced options, any other key to quit help.

Much Luck
 
Ed

I did try to reload windows, but it had problems with 3 files, shimgvw.dll, upnpui.dll and dajava.cab, all files that go to the system directory. So the windows (ME) reload did not work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top