Renaming with a Name That Exists

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Renaming with a Name That Exists.

ANSI 4.9.4.2** The effect if a file with the new name exists prior to a call to the rename function

If you attempt to rename a file using a name that exists, the rename function fails and returns an error code.

Library Functions

Show: