I've realized a VBS automation script using your Moldflow API's and everything works correctly.
My only question is:
Is there any way to dispose correctly the Synergy interface?
To be clear, using your example script is possible to run Synergy, but there is no any method to close it.
cscript.exe //Nologo script.vbs
The cscript termates correctly but the Synergy interface remains up.
Can anybody help me?
is a while since you posted this question, and maybe you already sorted it out.
Anyway, there is a way. It is a bit harsh and terminates all synergy.exe processes, no prompts.
SetLocale("en-us") Set Synergy = CreateObject("synergy.Synergy") Synergy.SetUnits "METRIC" MsgBox "Done?" '** terminates all synergy.exe no prompt For Each objProcess In GetObject("winmgmts:").InstancesOf("Win32_Process"
) If objProcess.Name = "synergy.exe" Then objProcess.Terminate Next Wscript.Quit