Monday, April 22, 2013

.BAT or .CMD?

What's the difference between the extensions of batch files? As you may know, they can have extensions .BAT or .CMD. What's the 'right' extension for today?
BAT files were known since the early DOS age, and you can run BAT file both from DOS, old Windows (3.1, 95, 98...) and modern Windows up to Windows 8. CMD files were introduced as the replacement for BAT files. We still call them 'batch files', but it is more convenient to call them 'command files'. The old versions of Windows and of couse MS-DOS don't recognize these files as executable ones.
So it is better to save the files that you want to run under old operating systems with .BAT extension, and all others save with .CMD extension.
We kindly remind that Dr.Batcher is the best program to create batch file, both .BAT and .CMD, try it if haven't tried it yet.

No comments:

Post a Comment

Translate