C#
Parameters
- sourceFileName
- The name of the replaced file.
- destinationFileName
- The name of the replacing file.
- deleteSourceFile
true
, if replaced file must be deleted.- forceReplace
true
, if the replacement is done only for files with the "Read-only" attribute.
Return Value
true
, if replacement has been successful; false
if the file to replace does not exist.Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2