Next Topic

Previous Topic

Book Contents

MoveFile

int MoveFile(string sSource,string sDest)

Return values

Non zero if the function is successful; otherwise 0, and a specific error code can be retrieved by calling global function GetLastError.

Parameters

  • sSource - Path and name of the file to be moved. sDest New path and name of the file.

Remarks

Function moves a file. The directory where the file will be moved to must exist or this function will fail. Directories cannot be moved with this function.