I want to design a programme like SW task scheduler, I can start up a SW and close itself regardless of the SW is running or not.
I check the windows tast manager . If I haved run a SW and then start up a SW task scheduler,, I found two processes of SW. When the task scheduler finished, The SW is runing .
This is what I want to get.
if I ues exitapp(), I found every SW is closed.
In How to start a new instance of solidworks, hidden ,there is some ideas ,like:
Dim mySolidworks() As Process
mySolidworks = Process.GetProcessesByName("SLDWORKS")
If UBound(mySolidworks) > -1 Then
bSWXrunning = True
' connect to existing SolidWorks
' start new instance of SolidWorks
' If SolidWorks is running already, do not close
If bSWXrunning Then
' make SolidWorks visible and give control to user
swApp.UserControl = True
swApp.Visible = True
' may have to kill SolidWorks
Catch ex As Exception
are there any ideas?
Retrieving data ...