On Apr 10, 8:27 pm, "Smokey Grindel" <nos...@nospam.com> wrote:
> Is there anyway to check if an external process is running, then terminate
> it if it is? my problem right now is in my installer the user might try to
> upgrade while the program is running... I want to check if it is running,
> notify them it is, then ask them if they want to terminate it or not...
> thanks!
Smokey,
To terminate a process:
' Be careful not to add ".exe" extension to your process name
For Each myprocess As Process In Process.GetProcessesByName("process")
myprocess.Kill()
Next
|