What is the file extension for batch files?
- A..BAT
- B..BATCH
- C..BCH
- D..CTH
Show answer
Correct answer: A. .BAT
Explanation
The correct answer is A, .BAT. A batch file is a plain text file containing a series of commands that the operating system carries out one after another without any further instruction from the user, and it is saved with the extension .bat. Such files were the standard way of automating routine work on DOS and on early versions of Windows, the best known of them being autoexec.bat. Option B is wrong because .batch is not a registered extension; classic extensions were limited to three characters and the shortened form is the one that survives. Option C is wrong because .bch is not used for this purpose at all. Option D is wrong because .cth is not a standard file extension in Windows. Remember .bat along with .exe and .com as the three files that can run by themselves.