MS-DOS

DOS command execution order, be careful naming batch files 95LX 100/200LX

If you use a lot of batch files, be careful what you name the file. DOS executes first, programs with the .COM file extension. Then it will execute .EXE programs, and finally .BAT (batch file) programs. Let's say you created a batch file in your root directory (C:\) named "SNITCH .BAT." If a program "SNITCH.COM" also exists in your root directory, and you type snitch from the DOS prompt, the .COM program will run, not the batch file.

Give your batch file a different name, or keep them all in a separate directory and change to that directory from the DOS prompt before attempting to run a batch file.

Larry Alkoff CompuServe ID: [72117,1254]