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:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax 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:
Booleantrue if the operation succeeded; otherwise false.
See Also