Platform Core .NET Assemblies API
Replace(String,String,Boolean,Boolean) Method
See Also  Send Feedback
Terrasoft.Common Namespace > FileUtilities Class > Replace Method : Replace(String,String,Boolean,Boolean) Method
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.

Glossary Item Box

Replaces the specified file with a different file.

Syntax

 
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.

Requirements

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

See Also

© Terrasoft 2002-2018.