![]() 1,036,228,373 visitors served. |
|
![]() Dictionary/ thesaurus | ![]() Medical dictionary | ![]() Legal dictionary | ![]() Financial dictionary | ![]() Acronyms | ![]() Idioms | ![]() Encyclopedia | ![]() Wikipedia encyclopedia | ? |
PKZIP abc's |
0.04 sec. |
|
Following are basic examples for learning how to zip and unzip files using the DOS version of PKZIP and PKUNZIP.
PKZIP TO FROM
To zip everything in the current directory, creating a MUCHSTUF.ZIP file, type:
pkzip muchstuf *.*
To zip everthing in the current directory, except the .BAK files, use the -x (eXclude) switch. There can be NO spaces between the -x and the file description that follows it; for example:
pkzip muchstuf *.* -x*.bak
To zip all the .DBF files in the current directory, creating a DATA.ZIP file, type:
pkzip data *.dbf
pkzip b:data *.dbf
To zip selected files, just name them sequentially. Use path names if the files are not in the current directory. For example, presuming SALES.DBF is in the current directory, but CREDIT is not, type:
pkzip data sales.dbf \123\credit.wk1
PKUNZIP FROM (selected files)
To unzip DATA.ZIP in the current directory, type:
pkunzip data
To unzip selected files from the floppy into your current directory, just name them sequentially; for example: C:\ANYWHERE>pkunzip b:data doc1 doc3 doc7 The .ZIP file still remains intact after exploding. Delete it if you have no further use for it. UNZIPPING FROM A FLOPPY INTO THE CURRENT DIRECTORY To unzip DATA.ZIP from the B: drive into the current directory, type:
C:\ANYWHERE>pkunzip b:data
For example, to create the DATA.EXE self-extracting archive from the DATA.ZIP file, type:
zip2exe data
To run DATA.EXE, simply type the program name like you would any executable file:
data
To extract selected files from a self-extracting archive on a floppy, just name the files sequentially. For example, to pull out DOC5 and DOC9 from DOCUMENT.EXE on the B: drive into the current directory, type:
C:\ANYWHERE>b:document doc5 doc9
pkzip b:document *.doc -u -bc:
The -u switch means zip only files that have a more recent date than the ones on the target drive, in this case the floppy drive B:. The -bc: switch indicates that the C: drive should be used if extra room is required to do the compressing. This is a good safeguard if you are zipping files onto floppies, otherwise the operation will stop if there is not enough room. In the above example, new .DOC files that do not already exist in the DOCUMENT.ZIP file would also be added. To update only files that already exist in the zip file without adding new ones, use the -f (Freshen) switch instead of the -u (Update) switch.
pkzip document letter.doc
pkzip document letter.doc -d
pkzip docs /v
For example, assume two subdirectories named JACK and JILL in the root directory. To zip all the files in JACK and JILL, use the upper case -P switch:
C:\>pkzip a:new jack\*.* jill\*.* -P
When you unzip NEW.ZIP using the -d switch, the JACK and JILL subdirectories will be created, if they do not exist, subordinate to the directory you are currently in. For example, if you are in the DATA directory, \DATA\JACK and \DATA\JILL will be created. Note the following syntax:
C:\DATA>pkunzip a:new -d
pkzip a:pix *.bmp -&
When you unzip this archive, start with diskette #1, and PKUNZIP prompts you for the required disks. |
|
? Mentioned in |
|---|
| Free Tools: |
For surfers:
Browser extension |
Word of the Day |
Help
For webmasters: Free content | Linking | Lookup box | Double-click lookup | Partner with us |
|
|---|