.cmd — Windows Command Script
Functionally similar to a .bat file — a script of Windows Command Prompt commands, with some minor behavioral differences.
Scripts can run commands on your computer when executed. Only run scripts from sources you trust, and review the contents in a text editor first if you're unsure.
Check another filename
File extension lookup
Frequently asked questions
What is a .cmd file?
Functionally similar to a .bat file — a script of Windows Command Prompt commands, with some minor behavioral differences.
Can I edit a .cmd file?
Yes — .cmd files are commonly editable with software such as Command Prompt (Windows).
Does having a .cmd extension mean the file is safe?
No single extension can guarantee that. Scripts can run commands on your computer when executed. Only run scripts from sources you trust, and review the contents in a text editor first if you're unsure. Always consider where the file came from, not just its name.