string sourcePath= @"F:\test\";
string targetPath= @"F:\transferedFiles\";
string filename="example.txt";
string sourceFile= System.IO.Path.Combine(sourcePath,filename);
string destFile = System.IO.Path.Combine(targetPath, filename);
System.IO.File.Move(sourceFile , destFile );
该程序在我的本地计算机上可以运行,但是在服务器上却无法运行。