还是一样。上面说的是不是小了。File name: 'System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at customs.Form1.button1_Click_1(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 还是我调用的。exe
{
String sysFolder = Environment.GetFolderPath(Environment.SpecialFolder.System);
// '创建一个新的进程结构
ProcessStartInfo pInfo = new ProcessStartInfo();
// '设置其成员FileName为系统资料的Eula.txt
pInfo.FileName = Application.StartupPath + @"\tools\jpwb2009.exe";
// '运行该文件
Process p = Process.Start(pInfo);
// '等待程序装载完成
p.WaitForInputIdle();
// '等待进行程退出
p.WaitForExit();
// '继续执行下面的代码
//MessageBox.Show("继续执行代码");
}我是这样写的,不知道有问题不。我是菜鸟
at customs.Form1.button1_Click_1(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
还是我调用的。exe
调试下这个值。。 看看路径下有无那个文件
虚拟机就不懂了。。