Share via


File.Move Method

Moves a specified file to a new location, providing the option to specify a new file name.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public static void Move (
         stringsourceFileName,
         stringdestFileName
)

Parameters

  • sourceFileName
    The name of the file to move.
  • destFileName
    The new path for the file.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.

See Also

Reference

File Class
File Members
System.IO Namespace