Batch Commands

The remainder of this appendix describes the commands you can use to control the execution of batch scripts. It describes the following commands:

  • Call

  • Echo

  • Endlocal

  • Exit

  • For

  • Goto

  • If

  • Pause

  • Rem

  • Set

  • Setlocal

  • Shift

  • Start

Note

Note

The Microsoft Windows Support Tools provide numerous command-line programs that are useful, particularly when you run them from batch scripts. The Windows Support Tools are on your Windows XP Professional product CD in the Support\Tools folder. Three of the most useful programs in the Windows Support Tools for deployment scenarios are Netdom.exe, Xcacls.exe, and Setx.exe. Netdom.exe is a program you use to manage computers on a ...

Get Microsoft® Windows® Desktop Deployment Resource Kit 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.