用vb.net运行一个应用程序,以solidworks为例

Dim myProcess As New Process()
        myProcess.StartInfo.FileName = "C:\Program Files\SolidWorks Corp\SolidWorks\SldWorks.exe"
        myProcess.StartInfo.CreateNoWindow = False
        myProcess.Start()


要注意的是 代码中的 myProcess.StartInfo.CreateNoWindow = False 为程序在前台运行,如果= True的话则为后台运行!

posted @ 2014-04-07 14:17  SOLIDWORKS-API  阅读(1024)  评论(0编辑  收藏  举报