Next Topic

Previous Topic

Book Contents

RenameFile

int RenameFile(string sOrgFile,string sNewFile)

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

  • sOrgFile - Path and name of the file to be renamed.
  • sNewFile- New path and name of the file.

Remarks

Function renames a file. Directories cannot be renamed with this function.