Chapter 6. Creating Batch Files

This chapter provides information and commands concerning the following topics:

Using Notepad

Giving feedback with echo

Using parameters

Calling another batch file with call

Clearing the screen with cls

Changing the order of processing with goto

Checking conditions with if

Logging events with eventcreate

Looping through tasks with for

Creating a menu file

Using Notepad

The difference between a good administrator and a great administrator is that great administrators have learned to script. You don’t even have to be a great scripter, and you can start scripting by creating basic batch files in Notepad. One of the great things about the command prompt is that anything you can execute at the command ...

Get Windows 7 Portable Command Guide: MCTS 70-680, and MCITP 70-685 and 70-686 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.