VB Script Help

By Pakora_bandit ·
Need some process monitoring script that when an application closes it kills a process on Win2k

Running Wireless card software called watcher.exe which is included in a shortcut. I'll attach a script to it.

Once watcher.exe closes i need the script to kill a process called swiapimux.exe

I have this so far my Do Loop Aint Working (

strComputer = "."
set wshshell = wscript.createobject("")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colwatcherProcess = objWMIService.ExecQuery _
("SELECT * FROM Win32_Process WHERE Name = 'watcher.exe'")


Loop until colwatcherprocess.count =0 "c:\winnt\system32\pskill swiapimux.exe"

wscript.echo"Process Killed

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Share your knowledge

Related Discussions

Related Forums