How to create a pathname in Command Window

nweissma

Distinguished
May 2, 2007
10
0
18,510
Sorry for this most rudimentary query, and I hope that I am posting in this forum's most appropriate category.

To wit: rather than type in an often-used pathname, how can i store, and invoke, that pathname?
 
Ummm, i visited the advanced system properties window and tab, but i can't see where i should enter this "PATH=" information. also, i am not so far advanced that i can understand what I'll be doing so i will proceed cautiously.
 
i am befuddled by this answer. i don't know where to go with it; i do not want to meddle in areas that i know nothing about -- such as this answer is prescribing. so, can someone either explain what this tab is for?
 
It will depend on what you are trying to do.

If you are trying to run a command from a certain place and you have to navigate to there each time to run it the path command will help you.
For example if you keep all of your .bat files on the c: drive in a folder called bat

In the command window type path<enter>
Now type the EXACT thing that it just showed you and add at the end
;c:\bat <enter>



If you just need it to go there each time you open the command prompt that can be set as well.
Right click it and hit properties
In the start in box set it to where ever you want it to begin.


Actually you can have several different command prompt shortcuts all leading to different places.