static void Main(string[] args)
{
string srcFileName = @"c:\order.txt";
string destFileName = @"c:\abcd.txt";
if (File.Exists(srcFileName))
{
File.Move(srcFileName, destFileName);
}
}
Move函數參數(原始文件名,目標文件名);
---------------------
作者:學_無止境_
來源:CSDN
原文:https://blog.csdn.net/zhangxxxxxxu/article/details/52181120
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!