Question

Locked

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("wscript.shell")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colwatcherProcess = objWMIService.ExecQuery _
("SELECT * FROM Win32_Process WHERE Name = 'watcher.exe'")

Do

Loop until colwatcherprocess.count =0

wshshell.run "c:\winnt\system32\pskill swiapimux.exe"

wscript.echo"Process Killed

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
Thread display: Collapse - | Expand +

All Answers

Share your knowledge
Back to Software Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums