exit
Syntax
exit[/b][exit-code]
Description
Exits the UEFI Shell or the current script.
Options
/b
-
Indicates that only the current UEFI Shell script should be terminated. Ignored if not used within a script.
exit-code
-
If exiting a UEFI Shell script, specifies the value placed into the environment variable
lasterror
. If exiting an instance of the UEFI Shell, specifies the value returned to the caller. If not specified,0
is returned.
Example
To exit the UEFI Shell:
fs0:\> exit