如图:

 

IO File.copy 实现文件的复制

 

代码如下:

  string path = @"c:\temp\MyTest.txt";
            
string pathCopy = @"c:\temp\MyTestCopy.txt";
            
if (File.Exists(path))
            {
                File.Copy(path, pathCopy, 
true);
                File.Delete(path);
            }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
  • 2018-10-09
猜你喜欢
  • 2022-12-23
  • 2022-03-05
  • 2022-12-23
  • 2022-02-28
  • 2022-02-02
  • 2021-09-21
  • 2021-06-27
相关资源
相似解决方案