#include <revolution/vf.h>
typedef s32 VFErr;
VFErr VFChangeDir( const char* dirName );
VFErr VFChangeDirW( const VFWchar* dirName );
dirName |
The address storing the path and directory name. Either a full or relative path may be specified. |
Returns 0 when successful.
Otherwise, returns VFErr other than 0.
Changes the current directory. The following method can be used to change the current directory from one drive to another. For example, when changing the current directory to the drive A:
VFChangeDir("A:\\") |
Changes to the drive A's root directory. |
VFChangeDir("A:/") |
Changes to the drive A's root directory. |
VFChangeDir("A:") |
Changes to the drive A's prior current directory. |
VFChangeDir("A:\\ABC") |
Changes to A:/ABC. |
*' and '?') cannot be used to specify directory names.
2006/06/23
2007/05/08 Corrected error in the example for changing the current directory.
CONFIDENTIAL