Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27329

VS 2008 How can I tell if a Process is Running?

$
0
0
Hi,

I am running Windows 7, SP1.

I would like to be able to tell if a TFTP server is running by checking the processes, so I tried this:

Dim proc() As Diagnostics.Process = Diagnostics.Process.GetProcessesByName(My.Settings.TftpServerWindowsProcessName)

It seems to show up whether is running or not.
A check of Task Manager's Processes shows that it's listed when running, and not listed when not running, as you would expect. But it always appears in the Services tab, running or not. Maybe that's why it always appears as a process? I could not kill the service either.

Does any one know how I could determine whether the exe is running or not?

Thanks

Viewing all articles
Browse latest Browse all 27329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>