/** @file
Main file for attrib shell level 2 function.
Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#include "UefiShellLevel2CommandsLib.h"
/**
Function for 'cd' command.
@param[in] ImageHandle Handle to the Image (NULL if Internal).
@param[in] SystemTable Pointer to the System Table (NULL if Internal).
**/
)
{
ProblemParam = NULL;
DriveSize = 0;
Status = CommandInit();
//
// initialize the shell lib (we must be in non-auto-init...)
//
Status = ShellInitialize();
//
// parse the command line
//
} else {
}
}
//
// check for "-?"
//
} else {
//
// remember that param 0 is the command name
// If there are 0 value parameters, then print the current directory
// else If there are 2 value parameters, then print the error message
// else If there is 1 value paramerer , then change the directory
//
//
// display the current directory
//
} else {
}
} else {
if (Param1Copy != NULL) {
}
if (Param1Copy != NULL) {
//
// nothing to do... change to current directory
//
//
// Change up one directory...
//
} else {
}
//
// change directory on current drive letter
//
if (Status == EFI_NOT_FOUND) {
}
}
//
// Move to root of current drive
//
} else {
while (PathRemoveLastItem(Drive)) ;
}
//
// change directory on current drive letter
//
if (Status == EFI_NOT_FOUND) {
}
}
} else {
if (*Param1Copy == L'\\') {
while (PathRemoveLastItem(Drive)) ;
} else {
}
//
// Verify that this is a valid directory
//
}
//
// change directory on current drive letter
//
if (Status == EFI_NOT_FOUND) {
}
}
}
}
} else {
//
// change directory on other drive letter
//
} else {
} else {
} else {
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CD_PRINT), gShellLevel2HiiHandle, ShellGetCurrentDir(Drive));
}
}
if (Status == EFI_NOT_FOUND) {
}
}
}
}
}
}
}
//
// free the command line package
//
//
// return the status
//
return (ShellStatus);
}