home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1991
/
11
/
chkpath.doc
< prev
next >
Wrap
Text File
|
1991-05-09
|
2KB
|
40 lines
CHKPATH.EXE
John Deurbrouck June 11, 1991 (Utilities)
Purpose: Displays either all or same-named .COM, .EXE, and .BAT files on
the user's path or in specified drive(s) or directories, showing which program
will actually be executed; also warns of common problems in PATH syntax and
usage.
Format: CHKPATH [/a] [/d=drive(s)] [/s=dir1 ... dirn]
[/e=var] [/n] [/p]
Remarks: Entered without any of the optional / switches, CHKPATH presents
a syntax help screen. The /a switch causes display of all rather than
conflicting-name programs. The /n eliminates file size, date, and time
information from the list. The /p/ switch pauses at each screenful.
Using the /d= switch causes a search of all directories in the drive(s)
named. No spaces between the drive letter colon and the next drive are
allowed in this case, but sequential drives may be specified with a dash, as
in /d=C:-F:H:. The /s= switch restricts the search to the directories
specified, as in /s=C:\DOS D:\UTIL.
Most frequently, CHKPATH will be used with the /e= switch, with PATH as
the specified var. By specifying /e=var more than once on the same CHKPATH
run, however, conflicts among different directory-specifying environment
variables may be checked at once. Environment variables should be formated as
in the DOS PATH statement.
CHKPATH will also alert the existence of empty, repeated, or relatively-
specified (backslash omitted) directories on the DOS path. More than one
specifying switch can be used at once to make multiple-selection comparisons.
When both specified and non-specified directories are shown in the listing the
latter will be prefixed by a minus sign.
All CHKPATH output can be redirected to a printer or a file. Both the
executable file and the C source code can be downloaded from PC MagNet.