Question VBS Script - Please Help

Status
Not open for further replies.

BadThad

Lifer
Feb 22, 2000
12,100
49
91
I need a VBS script to kill two running processes. I can do it in PowerShell, no problems using:

taskkill /f /im CorsTra.exe
taskkill /f /im M95Hid.exe

However, in my google searches (yes, I'm pathetic with code) none of the suggestions worked and I tried a few like this:

Dim oShell : Set oShell = CreateObject("WScript.Shell")​

oShell.Run "taskkill /f /im M95Hid.exe",,True​

Dim oShell : Set oShell = CreateObject("WScript.Shell")​

oShell.Run "taskkill /f /im CorsTra.exe",,True​


What VBS code do I need to accomplish this simple task because the above and nothing else I tried does? They run but the processes never end. Thanks!
 

BadThad

Lifer
Feb 22, 2000
12,100
49
91
Solution:

 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,648
4,590
75
Locked because cross-posted - Moderator Ken g6
 
Status
Not open for further replies.