Specifications
64 Version 2.0
Table 7 Environment Variables with Special Meaning to the UEFI Shell
Variable V/NV
RO/RW
Description
cwd V/RO The current working directory, including the current
working file system. See “Current Directory” (page TBD)
for more information.
Lasterror V/RO Last returned error from a UEFI Shell command or batch
script
path
V/RW The UEFI Shell has a default volatile environment variable
path, which contains the default path that UEFI Shell will
search if necessary. When user wants to launch an UEFI
application, UEFI Shell will first try to search the current
directory if it exists, and then search the path list
sequentially. If the application is found in one of the paths,
it will stop searching and execute that application. If the
application is not found in all the paths, UEFI Shell will
report the application is not found.
If the path variable is empty or it doesn’t exist, UEFI Shell
will treat current directory as the working directory. In
general, paths stored in path variable looks like:
path:
.;fs0:\efi\tools;fs0:\efi\boot;fs0:\;fs1:\efi\tools;fs1:\efi\boo
t;fs1:\
The UEFI Shell supports both absolute paths and relative
paths when launching commands. Users can set path to
any specified value, but this variable will be refreshed
immediately after the execution of command ‘map –r’ and
it’s volatile so that the contents will be lost after reset or
power off. Typically users can append the paths to this
variable in this way:
set –v path %path%;fs0:\test
profiles NV/RO The list of UEFI shell command profiles supported by the
shell. Each profile name may only contain alphanumeric
characters or the ‘_’ character. Profile names are semicolon
(‘;’) delimited.
shellsupport V/RO Reflects the current support level enabled by the currently
running shell environment (see UEFI Shell Levels of
Support, section 3.1. The contents of the variable will
ref
lect the text-based numeric version in the form that
looks like:
3
This variable is produced by the shell itself and is intended
as read-only, any attempt to modify the contents will be
ignored.
uefishellversion V/RO Reflects the revision of the UEFI Shell specification that the
shell supports. The contents are formatted as text:
2.00










