Click or drag to resize

FileMove Method

Moves the specified file to the destination location.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static void Move(
	string sourceFileName,
	string newFileName
)

Parameters

sourceFileName  String
Source directory to move.
newFileName  String
Destination to move the source file to.
Exceptions
ExceptionCondition
InvalidDirectoryLocationExceptionOne of the specified directories is invalid.
DirectoryNotFoundExceptionA Specified directory does not exist.
FileNotFoundExceptionA specified file does not exist.
PathTooLongExceptionThe specified path is longer than 248 characters.
IOExceptionFile System error.
UnauthorizedAccessExceptionHigher Permissions needed.
ArgumentExceptionSpecified path contains invalid characters.
ArgumentNullExceptionSpecified path is null.
NotSupportedExceptionSystem does not support this operation.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also