Analyse a .CMD file

Home › Formats › .CMDFull

What is a .CMD file?

CMD is a Windows command script - the same idea as a .bat file but interpreted by the newer Windows NT command processor (cmd.exe), with a few extra features.

Did you know
  • Windows NT adopted .cmd in 1993 to distinguish its scripts from legacy MS-DOS .bat files that ran under COMMAND.COM, having inherited the extension from OS/2.
  • The .cmd extension was introduced with Windows NT to distinguish scripts meant for the newer cmd.exe from legacy DOS .bat files.
  • Functionally .bat and .cmd are nearly identical, with .cmd handling a few error-level and command behaviours more consistently.
What Analyser shows you
Preview and inspect HTML, CSS, JavaScript, TypeScript, JSON, YAML, XML and Markdown source files, plus Windows scripts. TypeScript (TS, MTS, and .d.ts declaration files) gets a structure readout beside the source: the modules it imports (packages against local files, and which are type-only), the names it exports, what it declares - interfaces, type aliases, enums, classes, functions - a code/comment/blank line breakdown, and how often it steps around the type system with any, as casts, non-null assertions and @ts- suppressions. PowerShell (PS1, PSM1, PSD1) is read for its comment-based help synopsis, #Requires directives, function and parameter counts, CmdletBinding and Authenticode signing; batch/command scripts (BAT, CMD) for the echo state, labels, variables set and the external tools they invoke.
Open a .CMD file
Drag a .CMD file onto the Analyser home page (or tap to pick one). It opens entirely in your browser - nothing is uploaded, there is no account, and it works offline once installed.
Related formats
.HTML · .CSS · .JS · .TS · .MTS · .TSX · .JSX · .JSON · .YAML · .XML · .MD · .HTM · .MJS · .YML · .TXT · .PS1 · .PSM1 · .PSD1 and more. See all supported file types.