B. CMD and Batch File Language Reference
The format of the CMD command line is
cmd [/a | /u] [/q] [/d] [/t:bf] [/e:on|off] [/f:on|off] [/v:on|off] [[/s] [/c | /k] command]
Table B.1 lists the options.
Table B.1. CMD Command-Line Options
Batch File Argument and for
Variable Replacement
The expressions listed in Table B.2 expand into batch file command-line arguments and for
command variables. In the expressions, n
is an argument number or the letter corresponding to a for
command variable.
Table B.2. Argument and for
Variable Replacement and Editing
The filename modifiers can be used in combination. For example, “%~dp
n
” returns the combined ...
Get Windows 7 and Vista Guide to Scripting, Automation, and Command Line Tools now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.