使用FILE.copy时,一定要删除与需要拷贝文件同名的文件,否则会报错!以前以为可以偷懒默认直接覆盖了。呵呵!

代码
1 File.Delete(@"c:\program files\wifigps\" + strfilename);
2 File.Copy(@"c:\program files\wifigps\update\" + strfilename, @"c:\program files\wifigps\" + strfilename);
3 File.Delete(@"c:\program files\wifigps\update\" + strfilename);

 

 

相关文章:

  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案