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