The second form of echo
ECHO [message]
lets you display a message. Simply type the text you want to see after the Echo command. In this
case, the system won??™t display the Echo command, just the message you want to display. Don??™t use
the @ sign with this form of the Echo command or the user won??™t see the message.
Using the Exit Command
Most people associate the Exit command with closing the current command window. Using Exit
alone will close the command window. However, you can also use this command within a batch
file to exit the batch file. To perform this task, you must use one or both of the following optional
Exit arguments.
/B Specifies that you want to exit a batch file, rather than the current command line session. If
you don??™t specify this command line switch, the command window closes, even when you issue
the Exit command from a batch file.
ExitCode Defines an exit code for the batch file. The default exit code is 0, which normally signifies
success. You can use exit codes to alert the caller to errors or special conditions. The exit
codes aren??™t defined by the system, so you can define any set of exit codes that you deem necessary
for your application.
Pages:
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376