Skip to Main Content
Windows® XP Under the Hood
book

Windows® XP Under the Hood

by Brian Knittel
July 2002
Intermediate to advanced content levelIntermediate to advanced
736 pages
16h 43m
English
Que
Content preview from Windows® XP Under the Hood

Appendix D. CMD and Batch File Language Reference

The CMD Command Line

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] 

The options are listed in Table D.1.

Table D.1. CMD Command-Line Options

Option Description
/a Causes standard output to use ANSI encoding.
/u Causes standard output to use Unicode encoding.
/q Turns batch file echo default to off.
/d Disables execution of AutoRun commands defined in the Registry.
/t:bf Two digits set the background (window) and foreground (text) colors for the window. For example, /t:1e specifies yellow text on a blue background. The color values are listed in Table 11.5 on page 485.
/e Enables or disables the command extensions. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Windows® 2000 Scripting Guide

Microsoft® Windows® 2000 Scripting Guide

Microsoft Corporation

Publisher Resources

ISBN: 0789727331Purchase book