首页 > 技术文章 > 用vb.net运行一个应用程序,以solidworks为例

frankwu2014 2014-04-07 14:17 原文

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的话则为后台运行!

推荐阅读