Prev | Current Page 363 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"

Normally,
you??™d add tasks that the batch file should perform based on the user??™s selection. Notice that the
copy and display selections tell the batch file to go back to the Repeat label. This is the most common
technique for creating a menu loop in a batch file. The batch file ends by telling the user goodbye
and turning echo back on.
Using the Echo Command
The command line uses the term echo to describe the process where the system echoes (repeats)
every command in a batch file to the command line. Echo provides a means of seeing which command
the system is processing. However, echo can become confusing for users who aren??™t aware
of or don??™t care about the commands that are executing. In addition, echo can disrupt visual effects,
such as menu systems, that you create. The Echo command has two forms. The first form
ECHO [{ON | OFF}]
displays the echo status when you don??™t include any arguments. The ON argument turns on echo so
you can see the commands, and the OFF argument turns off echo so you can create visual effects.
You can precede the Echo command with the @ sign so it doesn??™t appear as one of the commands.
@Echo OFF would turn echo off without displaying the echo command at the command prompt.


Pages:
351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375
parasole reklamowe nieruchomości szczecin meble do sypialni rolety zewnętrzne 2 1