Renames a file which contains the given search string

Namespace:  HS.Sys.TheEnterprise.Common.Laserbear
Assembly:  Laserbear (in Laserbear.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#
public static bool RenameFile(
	string dirPath,
	string searchString,
	string renamedFileName
)
Visual Basic (Declaration)
Public Shared Function RenameFile ( _
	dirPath As String, _
	searchString As String, _
	renamedFileName As String _
) As Boolean
Visual C++
public:
static bool RenameFile(
	String^ dirPath, 
	String^ searchString, 
	String^ renamedFileName
)

Parameters

dirPath
Type: System..::.String
Directory path to look for the file
searchString
Type: System..::.String
String to search for in the file
renamedFileName
Type: System..::.String
Name of the renamed file

Return Value

True if a renaming match was found and the file was renamed

See Also