[DllImport("kernel32.dll")] public static extern int WinExec(string exeName, int operType); public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { WinExec(@"D:\project\LiuLun\LiuLun.Browser.Demo5\App\nw.dll",1); }
这样做貌似还是有点问题的,以后再深入研究
时间: 2024-10-12 05:29:25