home *** CD-ROM | disk | FTP | other *** search
- HipZIP
- by
- Joe Emenaker
-
- Version 2.0
- "For users who ZIP from the hip!"
-
- Have you ever wanted to ZIP half of the files in a directory, but couldn't
- think of a good wildcard to use to get the ones you wanted? Well, never
- fear, because I, Joe Emenaker, purveor of fine hacker utilities and king of
- the beta release, have just gotten my latest gem running!
-
-
- Contents
- --------
- How it Works................................. I.
- Command-line syntax.......................... II.
- Once you're in............................... III.
- Environment variables........................ IV.
- Make this obsolete!.......................... V.
- "There are starving kids in.....California??" VI.
-
- **********************************************************************
- I. How it works
-
- HipZIP takes the last wildcard or pathname out of the command line
- and expands it into a menu that lets you tag the files you want. When
- you're done, HipZIP stores all of the filenames in a file called HIPZIP.TMP
- and calls PKZIP. When it calls PKZIP, it passes to it, whatever command
- line parameters were given *minus* the wildcard. For example: If you
- invoked HipZIP with:
- HZ -m -r -p sample.zip *.doc
- HipZIP would give you a menu of all of the .doc files in the current
- directory. When you've selected the ones you want, HipZIP would call PKZIP
- with:
- PKZIP -m -r -p sample.zip @HIPZIP.TMP
- where HIPZIP.TMP contains the names of the files you want. So, whatever
- command lines you want passed to PKZIP are to be put on HipZIP's command
- line.
-
- **********************************************************************
- II. Command line syntax:
-
- ZIPMENU [options_for_PKZIP] ZIPfile [path_for_HipZIP]
-
- [options_for_pkzip] - These are where you put the options you want sent to
- PKZIP when HipZIP calls it. For example, "-r" or
- "-ex" or "-a" or a combination of these and others.
-
- ZIPfile - This absolutely must be on the command line. If it
- isn't, HipZIP will tell you so and bid you good day.
- It can be an already existing ZIPfile or a new one.
-
- [path_for_HipZIP] - I tried to make the interpreter for this so that it
- would accept anything that was fairly intuitive. Here
- are the basic rules:
- 1 - If no extension is specified, it tries to match
- anything with the same beginning. For example, if
- you give it: "C:\TEXT\WENDY", HipZIP will try to
- find anything matching: "C:\TEXT\WENDY*.*"
- 2 - If no extension is specified, but the first rule
- didn't turn up anything, HipZIP assumes it's a
- directory and tries to find anything matching:
- "C:\TEXT\WENDY\*.*"
- 3 - If you put a period in the filename, HipZIP
- should leave it alone. For example,
- "C:\TEXT\WENDY." will cause HipZIP to look for
- that file only. You may as well use PKZIP
- directly, for this.
- 4 - Any pa1th ending in a slash is assumed to be a
- directory and HipZIP searches for all files in
- that directory.
-
- Folowing are some sample command line paths and how
- HipZIP interprets them.
-
- Command line path HipZIP's interpretation
- ----------------- -----------------------
- C: C:*.* (default dir)
- \ \*.* (default drive)
- C:\ C:\*.*
- C:\UTIL C:\UTIL*.* or C:\UTIL\*.*
- C:\UTIL\ C:\UTIL\*.*
- FOO FOO*.*
- C:\FOO C:\FOO*.*
-
- **********************************************************************
- III. Once you're in
-
- Once you've invoked HipZIP, there are several keys that you must use to
- tag files and move the cursor, etc. They are:
-
- <Up>,<Down>,<Right>,<Left> - Move the cursor one filename in their four
- respective directions.
- <Home>,<End> - Move cursor to the first and last filenames in the list.
- <PgUp>,<PgDn> - Move cursor one page to up (or to the left) and one page
- down (or to the right) respectively.
- <Esc> - Aborts HipZIP and takes you back to DOS.
- <Return> - Saves the filenames and runs PKZIP
- <+>,<-> - Tag and untag filenames, respectively
- <Spacebar> - Toggles the tag of a filename.
- <F2>,<F3>,<F4>- Sort filenames by name, extension, and size, respectively
-
- **********************************************************************
- IV. Environment variables
-
- If you don't like the colors I chose or you would like HipZIP to always
- startup with the files sorted a certain way (by default, they aren't sorted
- at all), you can use the two environment variables HZCOLOR and HZSORT.
- Here's how they work:
- To set the color you want, put this in your AUTOEXEC.BAT file:
-
- SET HZCOLOR=#
-
- where the # is determined by the following table:
-
- Blinking..........128
- Background
- Black...............0
- Blue...............16
- Green..............32
- Cyan...............48
- Red................64
- Magenta............80
- Brown..............96
- Light Grey........112
- Foreground
- Black...............0
- Blue................1
- Green...............2
- Cyan................3
- Red.................4
- Magenta.............5
- Brown...............6
- White...............7
- Dark Grey...........8
- Light Blue..........9
- Light Green........10
- Light Cyan.........11
- Light Red..........12
- Light Magenta......13
- Yellow.............14
- Bright white.......15
-
- So, if you wanted Brown foreground on a Magenta background, you'd add
- the values, like so
-
- Brown foreground............. 6
- +Magenta background........... +80
- -----
- =86
-
- so you'd put SET HZCOLOR=86 in your AUTOEXEC.BAT file.
-
- if you wanted blinking cyan on brown......
-
- cyan foreground.............. 3
- brown background............. +96
- blinking.....................+128
- ------
- =227
-
- likewise, the normal white on black is just 7!!!
-
-
-
- Now for sorting, you set the HZSORT variable as follows:
-
- SET HZSORT=1 -----> Sort by filename
- SET HZSORT=2 -----> Sort by extension
- SET HZSORT=3 -----> Sort by size
-
- **********************************************************************
- V. Make this obsolete
-
- I don't think I need to explain to you why this feature should be
- integrated into PKZIP itself. If integrated into the PKZIP/PKUNZIP package,
- you could use this same menu/tag method to: delete files from ZIPs, view
- text files within ZIPs, select specific files to UNZIP. It would be
- terrific.
-
- However, if this did happen, HipZIP would no longer be of any use.
- Doesn't that make me mad? No. I did not write HipZIP for money (although
- that does help to smooth out the bumps in life), I wrote it because it
- was needed. Sure, there are lots of big huge programs like SHEZ that have
- so many features that it is Cadillac of ZIP utilities. The only problem
- is.... it HANDLES like a Cadillac. Some of us want the Honda CRX of ZIP
- utilities.... something that just gets us where we want to go and is small
- and quick.
-
- For this reason, I sent a copy of HipZIP to Phil Katz, asking him to
- consider building this feature right into PKZIP and PKUNZIP. If you think
- this is a good idea, please write to Phil Katz to let him know that his
- users want this feature. I truly believe that this feature is basic enough
- and is small enough that it warrants putting it at the core.
-
- **********************************************************************
- VI. "There are starving kids in.....California?"
-
- This wasn't trivial to write. If you find of use, which I certainly
- do, please consider sending, say $5 to:
-
- (Home) <- After August, 1991
- Joe Emenaker
- 518 Richmond St.
- El Segundo, Ca. 90245
- (213)-322-7430
-
- (School) <- Through August, 1991
- Joe Emenaker
- 1167 Atascadero St.
- San Luis Obispo, Ca. 93401-6501
- (805)-542-9230
-