home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
arc_lbr
/
uxarc.arc
/
UXARC.DOC
< prev
Wrap
Text File
|
1989-07-12
|
2KB
|
42 lines
UXARC is just a short little utility I wrote as a convenience
to myself for extracting files from the various archive
formats around. The problem arose when downloading
files from the ATT-PAC BBS/(415) 829-6062. This board's
AUNTIE BBS software allows the user to enter a filename
without an extension, and the system will automatically
perform any operations the user requests on that file if
it exists as an .ARC, .ZIP, or .LZH file. This,
unfortunately, led to the problem of downloading files
in an archive format with which I was unfamiliar.
This utility was then written merely to make it possible
to treat archives in the same manner from DOS as they
are in AUNTIE. Most of the command-line options in
PKUNPAK, PKUNZIP, and LHARC are similar, so it was easy
to create a utility to unify all three.
What this program does is search the command-line for the
first occurrance of an option which does not begin with
either "-" or "/". It assumes this is the archive file.
If this filename has an extension, the program will
use the correct archive extraction program based upon that
extension. If the filename does not have an extension,
the program will search for the filename with the
extensions ".ZIP", ".ARC", and ".LZH", in that order. When
it finds one, it will use the appropriate archiving
program.
The main advantage of this program is that it unifies the
command-line syntax of all three programs, making it un-
necessary for the end user to be concerned with the format
of the archive extraction command. Extra features to unify
the command syntaxes include the conversion of all hyphens at
the beginning of command line arguments to slashes, since
Phil Katz's .ARC programs do not support hyphens. Also, if
no command-line switches are specified on an LHARC file,
this program adds an -X, which is the default for both of
the other extraction programs.
This program requires that you have PKUNZIP, PKUNPAK, and
LHARC in your path.