What is a .BAT file?
BAT is a Windows batch script - a plain-text file of MS-DOS / Command Prompt commands run in sequence to automate tasks on Windows.
- Did you know
- The .bat extension dates back to MS-DOS in 1981; .cmd was added with Windows NT and behaves almost identically.
- Batch files date back to MS-DOS in 1981, where AUTOEXEC.BAT ran automatically at start-up to set up the system.
- A .bat is plain text, so it can be written in any editor, but its quirky syntax for variables and loops is a long-running source of frustration.
- 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 .BAT file
- Drag a .BAT 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.