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
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()是不是没有起作用?
如何更改,谢谢啊