home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boldly Go Collection
/
version40.iso
/
TS
/
05B
/
UZ.ZIP
/
UZ.DOC
< prev
next >
Wrap
Text File
|
1992-07-26
|
6KB
|
145 lines
UZ.EXE v1.0
A program to automate the routine done with every downloaded file
Copyright 1992 by Alan Dougherty
All Rights Reserved
DISCLAIMER OF WARRANTY
THIS SOFTWARE IS OFFERED "AS IS" AND IS WITHOUT A WARRANTY AS TO
PERFORMANCE OR MERCHANTABILITY. THIS PROGRAM IS OFFERED WITHOUT ANY
EXPRESS OR IMPLIED WARRANTIES WHATSOEVER. BECAUSE OF THE DIVERSITY
OF CONDITIONS AND HARDWARE UNDER WHICH THIS PROGRAM MAY BE USED, NO
WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE IS OFFERED. THE USER
IS ADVISED TO TEST THE PROGRAM THOROUGHLY BEFORE RELYING ON IT. THE
USER MUST ASSUME THE ENTIRE RISK OF USING THE PROGRAM.
When I call one of my favorite bulletin boards and download a file,
there are things that I always do after receiving the file.
1 - strip the ZIP comment
2 - unzip the file into another subdirectory
3 - do a virus check
4 - read documents
5 - look for name of the executable
I wrote UZ to automate this process. Everything UZ does could be
done with a batch file except for loading the documents. UZ
supports wildcards in designating which files to load in your
favorite editor.
UZ can be configured with the file UZ.CFG. The UZ.CFG included
looks like this:
C:\DOWNLOAD
C:\DOWNLOAD\EXTRACT
PKUNZIP.EXE -e FILENAME DESTPATH
.ZIP
STRIPZIP FILENAME
SCAN.EXE *.* /NOMEM /NOBREAK /BELL /E .OVL .DAT .BIN
LIST.COM
*.me
*.new
*.
*.doc
*.man
*.txt
#*.c
Each line must end with a carriage return. Some lines may be
ignored by UZ if commented out with a # character (see example last
line above).
The first row is where to look for the file to process IF it is not
present in the current subdirectory. A trailing backslash is
optional. This subdirectory must already exist.
The second row is where to put the extracted files. This line is
required and should not be commented out. Trailing backslash is
optional. This subdirectory must already exist.
The third line is the name of the archiver to use and its arguments.
Please enter "FILENAME" in UZ.CFG wherever you want the name and
path for the archived file substituted. Enter "DESTPATH" wherever
you want the path to the destination subdirectory substituted. The
archiver, in the example PKUNZIP.EXE, must have the full filename
including extension to spawn properly. There may be ten arguments
following it in UZ.CFG (all must be on same line in UZ.CFG).
The fourth line is the default extension of the archived files. If
this is given in UZ.CFG, it allows you to simply enter the filename
without the extension when using UZ (e.g. "UZ filename" instead of
"UZ filename.ext"). This line can be commented out with a # as the
first character on the line but will then require that the extension
is given every time when using UZ.
The fifth line is the program to use on the archived file prior to
extracting it. There may be up to ten arguments to this program in
UZ.CFG (all must be on same line in UZ.CFG). This line may be
commented out with a # as the first character in the line. UZ will
then not call this program. You must include the file extension.
The sixth line is the program to use on the extracted files in the
destination subdirectory. There may be up to ten arguments (all on
same line in UZ.CFG) and this line may also be commented out. You
must include the file extension.
The seventh line is your favorite editor. There may be up to ten
arguments (all on same line in UZ.CFG) and this line may also be
commented out. You must include the file extension.
The next lines (up to ten) give the wildcard specifications of which
files you want to load into your editor. Please be cautious in your
selections since it may lead to loading executables or other binary
files.
UZ will need to know where its configuration file is if it is not
present in the current subdirectory.
SET UZ=C:\UZDIR
Set the environment variable UZ to the directory which contains the
UZ.CFG file.
You may also change the wildcard specifications "on the fly" by
placing them on the command line. For instance, suppose you
download a file that contains some interesting C source code.
If "*.c" is not in UZ.CFG, or if it is and you want to examine the C
source first, simply enter:
UZ <filename> *.c
This will cause UZ to process the archived file and load the C
source first. Then it will load files into your editor as given in
UZ.CFG. Any number of arguments you type on the UZ command line
will be processed in sequence.
UZ returns the following errorlevels:
DOS errorlevel value
0 UZ executed properly
-1 No argument
-2 Environment variable not set
-3 Can't open UZ.CFG file
-4 Archiver commented out
-5 Programming error in SPAWN ARCHIVE logic
-6 Extension commented out
-7 Can't find file in current directory (sourcepath commented out)
-8 Destination directory commented out
This program is copyrighted shareware. You are free to copy and
distribute this program as long as no files are deleted or altered
in any way. You may use this program on a trial basis for one week.
After this period of time you must register this program if you
continue to use it.
SCENIC POSTCARD REGISTRATION
To register this program, simply send me a scenic postcard from your
area. Include any comments or suggestions regarding UZ on it. I'll
enjoy your postcard and you will then be registered. Registered
users will receive no additional benefits other than a license
to use the program.
Mail postcards to:
Alan Dougherty
1 Crossing Circle G
Boynton Beach, FL 33435