搜尋此網誌

2011年10月22日 星期六

EFI Shell commands -- GOTO(強制批次檔案中無條件的執行跳要至一個特定位置)

Forces batch file execution to unconditionally jump to specified location.

GOTO label


    label    - Specifies a location in batch file

Note:
    1. The GOTO command is only available in batch script files.
    2. Execution of batch file will jump to the line immediately following the
       specified label name.
    3. GOTO cannot jump from outside into a FOR cycle block.

Examples:
    #
    #  Example script for "goto" command
    #
    goto Done
    ...
    :Done
    cleanup.nsh

沒有留言:

張貼留言