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
Remarks
The function will fail if there exists a file with the same name as supplied in the second parameter.