Attempts to move the specified file to a new location, returning true
if successful.
public static bool TryMove(string sourceFileName, string destinationFileName)
parameter | description |
---|---|
sourceFileName | The name of the file to move. |
destinationFileName | The new path for the file. |
true
if the file was successfully moved, otherwise false
.
destinationFileName must not exist.