搜尋此網誌

2011年10月22日 星期六

EFI Shell commands -- ECHO(控制批次檔的回應與顯示一個訊息)

Controls batch file command echoing or displays a message.

ECHO [-on|-off]
ECHO [message]


    -on      - Enable  echo when executing batch file commands
    -off     - Disable echo when executing batch file commands
    message  - Display a message string

Note:
    1. Echo -off disables the echo feature when executing batch file commands.
       This command is not like the MS-DOS echo command.
    2. Echo without a parameter shows the current echo setting.

Examples:
  * To display the current echo setting:
    fs0:\> echo
    Echo is off

  * To enable command echoing:
    fs0:\> echo -on

  * To disable command echoing:
    fs0:\> echo -off

  * To execute HelloWorld.nsh batch file and echo commands when executing:
    fs0:\> HelloWorld.nsh
    +HelloWorld.nsh> echo Hello World
    Hello World

  * To display a message string of 'Hello World':
    fs0:\> echo Hello World
    Hello World

沒有留言:

張貼留言