帮忙看下程序,调用外部exe程序等待问题
vb.net吧
全部回复
仅看楼主
level 1
Dim mypros As System.Diagnostics.Process = New System.Diagnostics.Process
mypros.StartInfo.FileName = "D:\MSC.Software\MD_Nastran\20101\bin\mdnastranw.exe"
mypros.StartInfo.Arguments = "101.BDF notify=no"
mypros.Start()
mypros.WaitForExit()
MessageBox.Show("计算完成")
----------------
目的mdnastranw.exe后台运行完毕,提示计算完成,然后继续执行下面代码;
可是,上面代码exe还在运行就提示计算完毕,
mypros.WaitForExit()是不是没有起作用?
如何更改,谢谢啊
2013年02月27日 09点02分 1
level 10
WaitForExit 放到 start 前面去
2013年03月01日 17点03分 2
level 5
[拍砖]
2013年03月17日 14点03分 3
1