private void Copy()
  {
   string aimpath=@"C:\Documents and Settings\Administrator\「开始」菜单\程序\启动\Shut_Explorer.exe";

//   string path = System.IO.Directory.GetCurrentDirectory()+"\\Shut_Explorer.exe"; //??

   string path=System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;//这种方法好,可以动态获取

   if(!System.IO.File.Exists(aimpath))
   {
    System.IO.File.Copy(path,aimpath);
   }

  }

相关文章:

  • 2021-08-25
  • 2021-12-27
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2021-04-30
  • 2021-10-28
  • 2021-10-14
  • 2021-04-14
  • 2021-04-16
  • 2021-12-09
相关资源
相似解决方案