Dim myProcesses As Process() = Process.GetProcessesByName("QTPro")One note on this is that the process name is the name without the extension. Eventhough through task manager it list the process name as QTPro.exe I had to use QTPro
Dim myProcess As Process
For Each myProcess In myProcesses
myProcess.Kill()
Next myProcess
No comments:
Post a Comment