2009/04/02

C# 搬移檔案

// Move file
public bool FileMove(string orgFileName, string newFileName)
{
try
{
System.IO.File.Move(orgFileName, newFileName);
return true;
}
catch (Exception ex)
{
_errorMessage = ex.ToString();
return false;
}
}

沒有留言: