Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / November 2006

Tip: Looking for answers? Try searching our database.

Uniquely identify a running exe?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
01423481d@gmail.com - 22 Nov 2006 04:44 GMT
Hi all

Here is a segment of code used to find out all running processes

Imports System.Diagnostics

...
Dim myProcesses() As Process
Dim myProcess As Process

       'Get the list of processes
       myProcesses = Process.GetProcesses()

       'Iterate through the process array
       For Each myProcess In myProcesses
               if myProcess.ProcessName="aaaa" then
               '''something
               end if
       Next

However the above code uses "name of the process", which is not
sufficient to uniquely identify the process. I would like to ask if
there is any way to identify a running process APART FROM its name?

As far as I known I could use "class ID" (GUID) as a key to find out a
running process/control, could anyone advise me how to achieve this? or
you have a better method?

Thanks!
Spam Catcher - 22 Nov 2006 04:58 GMT
01423481d@gmail.com wrote in news:1164170680.442996.326780
@h48g2000cwc.googlegroups.com:

> However the above code uses "name of the process", which is not
> sufficient to uniquely identify the process. I would like to ask if
> there is any way to identify a running process APART FROM its name?

You can use the ProcessID

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.