Stopping runtime from windows via VBS
Hi All,
I have station with Win XP SP1, and zenon 6.20 runtime on it.
And to close runtime I use this script
VBA Code:
Const strComputer = "."
Dim objWMIService, colProcessList
Set objWMIservice = GetObject("winmgmts:" & "{impersonationalLevel=impersonate}!\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'zenrt32.exe'")
For Each objProcess in colProcessList
objProcess.Terminate()
Next
It works, but I have to close all processes which is using by zenon.
So, I need to stop zenon correctly by script, Is there a way to do this?
This is a migrated post! Originally posted on 10.12.2015 by user ruslan_zakirov. Please be aware that information can be outdated.