Next Topic

Previous Topic

Book Contents

RenameFile

bool RenameFile(string sOldname,string sNewname)

Return values

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

Parameters

  • sOldname - Old name of file to rename. sNew name New name of the file.

Remarks

The function will fail if there exists a file with the same name as supplied in the second parameter.