VFChangeDir(W)

C Specification


#include <revolution/vf.h>

typedef s32	VFErr;

VFErr VFChangeDir( const char* dirName );
VFErr VFChangeDirW( const VFWchar* dirName );

Arguments

dirName The address storing the path and directory name.
Either a full or relative path may be specified.

Return Values

Returns 0 when successful
Otherwise, returns VFErr other than 0

Description

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.
Wildcards ('*' and '?') cannot be used to specify directory names.

See Also

VFCreateDir, VFDeleteDir

Revision History

2006/06/23
2007/05/08 Corrected error in the example for changing the current directory.


CONFIDENTIAL