Hi friends..
I need to get all the .exe's running in a machine and display them in my application .How to do it..? In specific i need to get the .Net exe's alone..
Somebody help in this regard as early as possible..

Regards,

Balaguru

Recommended Answers

All 2 Replies

You can get the list of processes running on the machine by using the System.Diagnostics.Process.GetProcesses Class:

For Each proc As Process In System.Diagnostics.Process.GetProcesses
strProcessList &= proc.ProcessName & vbCrLf
Next

MsgBox(strProcessList)

Dear Binoj ..

Thx for the quick reply..In case of local machines what u have suggested is ok..But i need to take and display the .net Exe's alone running in a remote machine..Is it possible to pass the ip of the remote machine as an input parameter in the getprocesses method and get the exe's running on that particular machine..?

Regards,
Balagurunathan S

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.