搜尋此網誌

2011年10月22日 星期六

EFI Shell commands -- PAUSE (印出一個訊息與等待鍵盤輸入)

Prints a message and waits for keyboard input.

PAUSE [-q]


    -q       - Do not display notification message

Note:
    1. The PAUSE command is only available in batch script files.
    2. The prompt message is "Enter 'q' to quit, any other key to continue".

Examples:

  * To pause the system after displaying the date and time:
    fs0:\> type pause.nsh
    File: fs0:\pause.nsh, Size 204
    #
    #  Example script for 'pause' command
    #
    echo pause.nsh begin..
    date
    time
    pause
    echo pause.nsh done.

  * To execute the script with echo on:
    fs0:\> pause.nsh
    +pause.nsh> echo pause.nsh begin..
    pause.nsh begin..
    +pause.nsh> date
    06/19/2001
    +pause.nsh> time
    00:51:45
    +pause.nsh> pause
    Enter 'q' to quit, any other key to continue:
    +pause.nsh> echo pause.nsh done.
    pause.nsh done.

  * To execute the script with echo off:
    fs0:\> echo -off
    fs0:\> pause.nsh
    pause.nsh begin..
    06/19/2001
    00:52:50
    Enter 'q' to quit, any other key to continue: q
    fs0:\>

沒有留言:

張貼留言