C#打开exe程序,同一个文件夹里面的exe程序 C#打开exe程序,同一个文件夹里面的exe程序,不是系统的exe,必须用绝对路径吗?请问有什么办法使用相对路径吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以获取当前exe文件的路径 然后拼接下不就是绝对路径了么 ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = Application.StartupPath + @"\Updater.exe"; startInfo.WindowStyle = ProcessWindowStyle.Normal; startInfo.Arguments = newVersion;//传参数给exe Process.Start(startInfo); ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = Application.StartupPath + @"\DMM.AddUpdater.exe"; startInfo.WindowStyle = ProcessWindowStyle.Normal; startInfo.Arguments = newVersion; Process.Start(startInfo); ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = Application.StartupPath + @"\DMM.AddUpdater.exe"; startInfo.WindowStyle = ProcessWindowStyle.Normal; startInfo.Arguments = newVersion; Process.Start(startInfo); 请问这是startInfo.Arguments = newVersion;什么意思呢? 多线程如何释放使用的资源 如何建空的BLOB参数?------------------急!!!!!!!! 再问,怎么在Default1中声明Default2啊? 有关数据权限的设置问题,急!! 如何合并结构不同的datatable? 一个超级 textbox 的 Bug 很菜的问题请大虾帮助急!!!!!!!!! 读取文本文件为乱码? C#如何在命令行覆盖输出 一个窗体调用一个类,如何让这个类执行过程中出现光标提示? datagridview 如何获取指定行列的值 C#备份SQL数据库
startInfo.FileName = Application.StartupPath + @"\Updater.exe";
startInfo.WindowStyle = ProcessWindowStyle.Normal;
startInfo.Arguments = newVersion;//传参数给exe
Process.Start(startInfo);
startInfo.FileName = Application.StartupPath + @"\DMM.AddUpdater.exe";
startInfo.WindowStyle = ProcessWindowStyle.Normal;
startInfo.Arguments = newVersion;
Process.Start(startInfo);
startInfo.FileName = Application.StartupPath + @"\DMM.AddUpdater.exe";
startInfo.WindowStyle = ProcessWindowStyle.Normal;
startInfo.Arguments = newVersion;
Process.Start(startInfo);
什么意思呢?