CMD, Windows Command File (.cmd)
The CMD Executables file format
CMD files are used on computers running on the Microsoft Windows operating system. The CMD file contains a series of commands and a specific order in which these commands have to be executed. The file format is also known as being a batch file format. Since this file is a vital part of Windows, they are often targeted by malware. Thus it's advised to check an unknown CMD file thoroughly.
Technical details of CMD files
CMD files contain data saved in a plain text format. Thus, they can be opened, viewed and edited using any common text editing or word processing software. Introduced together with Windows NT, CMD files are similar to DOS BAT files. Instead of being run by COMMAND.COM, it is run by CMD.EXE though. The files can be run on all kinds of Windows NT systems via DOS.