Movefileex

[DllImport("Kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)][return: MarshalAs(UnmanagedType.Bool)]
public static extern bool MoveFileEx(string lpExistingFileName,
   string lpNewFileName,
   uint dwFlags
);

Microsoft documentation: Link

Last updated