Specifications
46 Version 2.0
EFI_SHELL_PROTOCOL.SetCurDir()
Summary
Changes the current directory on the specified device.
Prototype
typedef
EFI_STATUS
(EFIAPI *EFI_SHELL_SET_CUR_DIR) (
IN CONST CHAR16 *FileSystem OPTIONAL,
IN CONST CHAR16 *Dir
);
Parameters
FileSystem
A pointer to the file system’s mapped name. If NULL, then the current working
directory is changed.
Dir
Points to the null-terminated directory on the device specified by FileSystem.
Description
If the FileSystem is NULL, and the directory Dir does not contain a file system’s
mapped name, this function changes the current working directory. If FileSystem is
NULL and the directory Dir contains a mapped name, then the current file system and
the current directory on that file system are changed.
If FileSystem is not NULL, and Dir is NULL, then this changes the current working file
system.
If FileSystem is not NULL and Dir is not NULL, then this function changes the current
directory on the specified file system.
If the current working directory or the current working file system is changed then the
%cwd% environment variable will be updated. For more information, see “Current
Directory” , section3.5.
Status Codes Returned
≠NULL The current directory.
NULL Current directory does not exist.










