///path 指定文件夹

///fileName指定文件的完整路径

public void saveFile(string path, string fileName) {
           FileInfo file = new FileInfo(fileName);
           string newName = file.Name;
           file.CopyTo(path + @"\" + newName, true);
        }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2021-07-02
  • 2021-07-04
猜你喜欢
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案