实现效果:
知识运用:
File类的Copy方法
实现代码:
private void Form1_Load(object sender, EventArgs e) { File.Copy(Application.ExecutablePath,@"C:\Copy_2.exe",true); label2.Text = @"C:\Copy_2.exe"; }
复制程序本身
原文:https://www.cnblogs.com/feiyucha/p/10322270.html