The correct answer is: A. EXE, COM, BAT
Command.com searches for programs to execute in the following order:
- EXE files
- COM files
- BAT files
If Command.com does not find a program with the specified name in any of these locations, it will return an error message.
EXE files are executable files that are created using the Microsoft EXE file format. COM files are executable files that are created using the Microsoft COM file format. BAT files are batch files that are created using the Microsoft batch file format.
Batch files are a type of text file that contains a series of commands that are executed by the Command.com interpreter. When you run a batch file, Command.com reads the file and executes each command in turn.
For example, the following batch file will print the message “Hello, world!” to the screen:
@echo off
echo Hello, world!
To run this batch file, you would type the following command at the Command.com prompt:
c:\>hello.bat
This would cause the following output to be displayed on the screen:
Hello, world!