Click or drag to resize

FileSystemEntryRenameByPath Method

Renames an entry using its path. It can also be used to move a file if the newName parameter is set to a full file path. Note this method cannot move from a volume to another.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static bool RenameByPath(
	string path,
	string newName,
	bool throwOnError = true
)

Parameters

path
Type: SystemString
The path to use.
newName
Type: SystemString
The new name. It can be a file name, or a full rooted path.
throwOnError (Optional)
Type: SystemBoolean
true to throw errors; otherwise false.

Return Value

Type: Boolean
true if the operation succeeded; otherwise false.
See Also