|
PATH
Sets a directory search order, a batch command. Displays or
sets a search path for executable files.
Syntax
path [[%path%] [Drive:]Path [;...]]
Parameters
[ Drive : ] Path : Specifies the drive and directory to
set in the command path.
; : Separates directories in the command path.
%path% : Specifies Windows XP to append the command path
to the existing set of directories listed in the
PATH environment variable.
PATH sets a directory search order. This is useful in many
respects. For example, if you are using a boot disk you are
running the DOS operating system from that disk and the more
complex commands will only run if you specify the location.
If you are at the A: prompt and want to run a command on C:
you must type FIND C:\myfile to use the FIND command, or if
you are in C: you would need to type A:\FIND C:\myfile. To
make things easier, type PATH A:\ at the C:\ prompt. This
way the operating system will know to access A: for all the
commands.
Some installation programs(especially development
environments) will add a line to the AUTOEXEC.BAT like
PATH=%PATH%;C:\MSSQL7\BINN this allows programming bins to
be accessed from anywhere on the drive.
Batch File Commands
|