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

Dim myProcess As New Process()
        myProcess.StartInfo.FileName = "C:Program FilesSolidWorks CorpSolidWorksSldWorks.exe"
        myProcess.StartInfo.CreateNoWindow = False
        myProcess.Start()


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

原文地址:https://www.cnblogs.com/frankwu2014/p/3650087.html