StringFunctions.ReplaceFilenameInPath

Replaces the filename in a path with another file name, preserving the path

public static string ReplaceFilenameInPath(string path,
	string newFilename)

Return Value

The passed in path with a new file name

Parameters

path
The path and filename of the original path

newFilename
the new file name


See also:

Class StringFunctions