|
Echo Batch Files
|
|
02-05-2010, 06:11 AM
Post: #1
|
|||
|
|||
|
Echo Batch Files
Loads of people use some batch commands but they didn't ever use echo function for writing on the screen. Here is a short explanation how to use echo.
Echo basically turns the command-echoing feature on or off, or displays a message. Used without parameters, echo displays the current echo setting. Syntax : Code: echo [{on|off}] [message]{ on | off } : Specifies whether to turn the command-echoing feature on or off. message : Specifies text you want to display on the screen. /? : Displays help at the command prompt. Remarks : -The echo message command is useful when echo is turned off. To display a message that is several lines long without displaying other commands, you can include several echo message commands after the echo off command in your batch program. -If you use echo off, the command prompt does not appear on your screen. To display the command prompt, type echo on. -To prevent echoing of a line, insert an at sign (@) in front of a command in a batch program. -To echo a blank line on the screen, type: Code: echo.Examples : The following example is a batch program that includes a three-line message preceded by and then followed by a blank line: Code: echo offCode: @echo offCode: if exist *.rpt echo The report has arrived."I dont know with what weapons World War 3 will be fought with, but i know World War 4 will be fought with stones and sticks" - Albert Einstein |
|||
|
« Next Oldest | Next Newest »
|





