-
DOS Command
Hi all,
I would like to ask if there is a command in DOS which is I can append the path to the path environment variable (that is when i type echo %path% system will returns me a path, and now I would like to append one more directory in the path). Thanks for help.
K.H.
-
I believe that
Code:
SET PATH=%PATH%;X:\APPENDED\;X:\OTHER;X:\ETC\
should do the trick.
Substitute the actual pathnames you want to include for the X:\APPENDED that I used for examples.
-
Yep:
And the path environment variable ( %PATH% ) can be used either at the first or the last of the command, depending on which order you would like the search to take place.
Whenever a requested program is NOT on the DEFAULT path which the system is using, it will look down the PATH statement ( in order! ) to attempt to find your resource. Therefore, the PATH statement should be organized to reflect the preferred search order for your system usage. ;)