Home : File Types : CMD File

.CMD File Extension

File Type 1Windows Command File

DeveloperMicrosoft
Popularity
4.4 (146 Votes)
CategoryExecutable Files
FormatText

What is a CMD file?

A CMD file is a script file that contains one or more commands in plain text format that are executed in order to perform various tasks. It is similar to a .BAT file, which is also commonly used to store a batch of executable commands.

More Information
Screenshot of a .cmd file in Microsoft Notepad
CMD file open in Microsoft Notepad

CMD files were introduced in the early 1990s with the release of Windows NT and can still be run by later Windows operating systems. The scripts are often created to perform repetitive tasks that require multiple steps, such as opening and converting a file in a program, creating a backup of a file, or setting the computer to sleep at a certain time.

You can run the commands stored in a CMD file in Windows by double-clicking the file or executing it in the Command Prompt (CMD.EXE) utility. You cannot run CMD files in COMMAND.COM, like you may do with BAT files, so that you do not incorrectly execute commands in the wrong Windows environment.

To run a CMD file in Command Prompt you must first navigate to the location of the CMD file, then press "Enter." For example:

C:\Path_to\The_folder\Example.cmd

Since CMD files store commands in plain text format, they can be opened and edited with a text editor, such as Notepad or Wordpad. You can also create your own CMD scripts with a text editor by adding one or more commands on separate lines and saving the file as a CMD file. Make sure the filename has a .cmd file extension instead of a .txt file extension.

warningWarning

Since CMD files store executable commands, the files may be used to perform various actions for malicious purposes, such as repeatedly opening a program to crash a system or deleting data. To protect against malicious attacks distributed in CMD files, never double-click a CMD file you have downloaded or received via an email attachment unless you can verify the legitimacy of the source. You can open it with a text editor to inspect the commands and if you are still unsure about its safety, delete the file.

FREE DOWNLOAD
Open and view .CMD files with File Viewer Plus.

Programs that open CMD files

Windows
Included with OS
Included with OS
Android
Free
Updated 1/28/2020

File Type 2M.U.G.E.N Character Commands File

DeveloperElecbyte
Popularity
3.2 (42 Votes)
CategoryGame Files
FormatText

.CMD File Association 2

Game file used by M.U.G.E.N, a free game engine used for creating 2D fighting games; saves the command set for a character, which defines what actions are taken when receiving keyboard input from the user; specifies when to kick, punch, jump, or take another action.

Programs that open CMD files

Windows
Updated 12/6/2011

About CMD Files

Our goal is to help you understand what a file with a *.cmd suffix is and how to open it.

All file types, file format descriptions, and software programs listed on this page have been individually researched and verified by the FileInfo team. We strive for 100% accuracy and only publish information about file formats that we have tested and validated.

If you would like to suggest any additions or updates to this page, please let us know.