主程序调用客程序:
方法一:
Process.Start( System.Windows.Forms.Application.StartupPath + "\\SelfUpdate.exe").WaitForExit();
waitforexit()等待当前程序结束,继续执行主程序,"\\“很重要不能忘。
方法二:
ProcessStartInfo info = new ProcessStartInfo();
info.FileName = @"路径\exe的文件名";
info.Arguments = "";
info.WindowStyle = ProcessWindowStyle.Minimized;
Process pro = Process.Start(info);
pro.WaitForExit();
html超链接注意:
<QrCode Code="http://www.XXXX.com/XXX.html?t=w&BussinessType=151&deviceno="></QrCode>
要增加个 转义符号&
时间: 2024-12-13 23:52:53