home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Multimedia & CD-ROM 3
/
mmcd03-jun1995-cd.iso
/
utils
/
disk-sys
/
addpat10
/
addpath.doc
next >
Wrap
Text File
|
1992-12-31
|
3KB
|
80 lines
╔═══════════════════════════════════════════════════════════════╗
║ ║
║ ADDPATH.EXE by John Lindinger, Compuserve ID# 71072,1402 ║
║ ║
╚═══════════════════════════════════════════════════════════════╝
SYNTAX:
ADDPATH.EXE <Valid Pathname> [/A|F] [/B|E] [/S]
PURPOSE:
ADDPATH will automatically edit the PATH statements found in
the C:\AUTOEXEC.BAT file. Those who create software installation
programs but cannot automatically edit the PATH statement found in
the AUTOEXEC.BAT file will now be able to accomplish this task
easily from within a batch file (example INSTALL.BAT).
The ADDPATH Utility will search the C:\AUTOEXEC.BAT file for
you and add the <Valid Pathname> to the PATH= statement unless
the <Valid Pathname> is already there.
If no PATH= statement is found then ADDPATH will add one as
the first statement in the C:\AUTOEXEC.BAT file.
If a C:\AUTOEXEC.BAT file does not exist then ADDPATH will create one
with the appropriate PATH= statement.
If changes are made then the original AUTOEXEC.BAT file will be saved
as the AUTOEXEC.OLD file.
SWITCHES:
The /S (silent mode) switch is useful from within a batch file
(example INSTALL.BAT). The switches do not have to be specified
if you prefer the defaults.
/A Modify all PATH= statements found (Default)
/F Modify only the first PATH= statement found
/B Put <Valid Pathname> at the beginning of the search path (Default)
/E Put <Valid Pathname> at the end of the search path
/S Silent mode - no screen messages
Author's Comments:
ADDPATH was written as a means to an end (and the cost to you is free).
Therefore it is not the ultimate in comercial grade software and you must
decide if it serves your purpose. The Author assumes no liability for
the use of this program. The program was written and compiled using
version 4.5 of MS-QBASIC. Some DOS version dependent commands are
emdedded in the program. These include the following:
DOS internal functions (COPY and DEL) are used to create AUTOEXEC.OLD
and to delete temporary files.
The DOS redirect funtion to the NUL device (COPY filenam1 filename2 > NUL)
was used to eliminate screen messages that normally result from COPY & DEL.
The DOS external command (IF EXIST filename ...) is used to check for
file existance prior to copying or deleting files to eliminate screen
messages that normally result from attempting to copy or delete a file
that does not exist.
These functions work correctly with DOS 5.0 but may be troublesome on
earlier DOS versions. The program will still perform its intended purpose
but resulting malfunctions could include failure to create AUTOEXEC.OLD,
failure to delete some temporary work files and/or failure to eliminate
DOS screen messages during program execution.
I welcome comments directed to my compuserve mailbox or mailed to the
following address. Please include where you obtained this program in
any messages.
John Lindinger Compuserve ID# 71072,1402
RD#2 Box 297
Airville, PA 17302