Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 867 Bytes

File metadata and controls

44 lines (28 loc) · 867 Bytes

Home

Function name : SetCurrentDirectory

Group: File Management - Library: kernel32


The SetCurrentDirectory function changes the current directory for the current process.


Code examples:

Current directory of the application

Declaration:

BOOL SetCurrentDirectory(
  LPCTSTR lpPathName
);
  

FoxPro declaration:

DECLARE INTEGER SetCurrentDirectory IN kernel32;
	STRING lpPathName

  

Parameters:

lpPathName [in] Pointer to a null-terminated string that specifies the path to the new current directory.


Return value:

If the function succeeds, the return value is nonzero.