David,
<LOL>
I Have plenty of things that are fubar. But no files by that name. ;-)
From various sources.
BAT is short for Batch. Identifies a text file you create that contains a
set of MS-DOS commands that are run when you type the name of the file.
COM extension, in MS-DOS, is short for Command. Identifies a command file
that contains a program MS-DOS runs when you type the file name.
EXE is short for Executable. Like COM, identifies a command file that
contains a program MS-DOS runs when you type the file name.
Command files contain the instructions that MS-DOS needs to carry out
commands.
How MS-DOS searches for a command
If you type something at the MS-DOS prompt, MS-DOS assumes you have typed a
command name. It then follows a particular sequence in trying to carry out
the command:
1. It checks to see whether you have typed the name of a built-in command,
such as dir or copy. If you did, MS-DOS carries out that command.
2. If what you typed isn't the name of a built-in command, MS-DOS checks to
see if you typed the name of a file with the extension COM or EXE (a
command file). If you did, MS-DOS searches the current directory for
the file and, if it finds the file, loads the program contained in the
file and runs it.
3. If what was typed isn't the name of a command file, MS-DOS checks to see
if you typed the name of a file with the extension BAT (a batch file).
If you did, MS-DOS searches the current directory for the file and, if
it finds the file, carries out the commands in the batch file.
4. If MS-DOS doesn't find the file in the current directory, it performs
steps 2 and 3 of this sequence in each of the directories in the PATH
command.
The sequence is important because it explains why MS-DOS doesn't carry out a
command file with the same name as a built-in command and why it won't carry
out a batch file that has the same name as either a built-in command or a
command file.
MS-DOS searches for a file by using default filename extensions in the
following order of precedence: .COM, .EXE and .BAT.
Amazing what you find in old MS-DOS books that still applies to XP.
Path
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/path.mspx
C:\>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Support Tools\;C:\Program Files\Common Files\Autodesk Shared\
C:\>echo %pathext%
..COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH