Many commands, such as "Edit" and "Move", are actually small programs stored on your computer. On some computers they're stored in C:\windows\system32, in some C:\windows\command, and in certain old ones C:\dos.

So if these are programs stored in a folder, how is it that you run them just by typing the name? Why doesn't the current directory need to be where the command program is?

The answer is in the "search path". MS-DOS has a list of directories that it will always check for EXEs when you type a command. Any executable (.exe, .com, or .bat) files that are in a directory in the "search path" can be run just by typing the name.

To view or change the search path, use the "path" command. Don't forget that you can type "Path /?" to learn all possible usages!

 

Proceed:     <-- Into It           --> Customizing the Prompt
 

Back to the Hub