| Distinguished Member with 2,313 posts. | | Join Date: Oct 2002 Location: Mumbai, India Experience: Intermediate |
26-May-2004, 02:08 AM
#11 |
Its a .txt file and therefore cannot be executed or run in DOS. DOS can run only .exe, .com and .bat files. Steps the computer would go thru are as follows
1. It will first check if it is a DOS command to be run from memory.
2. If it isn't then, in the current directory It will look for a file called checkit.exe. If not found, look for checkit.com. If still not found look for checkit.bat. (I am not too sure which type it looks for first. May be it looks for .com first and then .exe or some other sequence. Will have to try this out).
3. If none of the files are found in the current directory, it will look for them in the same sequence in C:\DOS.
4. If it is not found even there, then it will look for them in C:\Windows.
5. If it is not found even there, it will display a message of Bad Command or File Name.
The later part of the error message is applicable here. It is just a file name. In DOS, trying to open a file doesn't automatically open the corresponding application and that is why only command or executable files (.exe, .com and .bat) can be run. |