它可以在我的电脑上运行,但是当我放入另一台机器时出现错误“源:系统进程已退出,因此请求的信息不可用”& exe 没有出来。哪位有经验的大哥可以帮忙?赞赏!
p = New Process
With p
.EnableRaisingEvents = True
.StartInfo.FileName = Application.StartupPath & "\EXE\CDMObjectSelection\CDMObjectSelection.exe"
.StartInfo.Arguments = strArgs
.StartInfo.ErrorDialog = True
.StartInfo.WindowStyle = ProcessWindowStyle.Normal
.StartInfo.UseShellExecute = True
.Start()
End With
p.WaitForInputIdle()
While (ginthwnd = IntPtr.Zero)
System.Threading.Thread.Sleep(100)
p.Refresh()
ginthwnd = p.MainWindowHandle
End While