Answered by:
Get All Process Description

Question
-
Hello,
I need to get description of all running processes. I am using this code
For Each p As Process In Process.GetProcesses Try Dim ProcessFile = FileVersionInfo.GetVersionInfo(p.MainModule.FileName) ListBox1.Items.Add(ProcessFile.FileDescription) ' Catch ex As System.ComponentModel.Win32Exception If ex.Message = "Access is denied" Then Else 'error handling End If End Try Next
but it gives me only part of processes - I need to get all process descriptions from all users.
how can I do this?
- Moved by Bruce AdamczakMicrosoft employee Friday, March 18, 2011 7:51 PM to find the correct forum (From:Windows Perfmon and Diagnostic Tools)
Thursday, March 17, 2011 8:53 PM
Answers
-
If it is, the OP should probably post in the appropriate Visual Basic forum.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
My Blog: http://unlockpowershell.wordpress.com
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})- Proposed as answer by Zoltán HorváthMVP Wednesday, December 5, 2012 11:34 AM
- Marked as answer by Zoltán HorváthMVP Wednesday, December 12, 2012 10:31 AM
Tuesday, December 4, 2012 5:36 PM
All replies
-
Hi,
Thank you for visiting the Microsoft forum. This forum focuses on Perfmon and diagnostic tools. I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum.
Thanks.
Bruce Adamczak
Bruce AdamczakFriday, March 18, 2011 7:50 PM -
-
If it is, the OP should probably post in the appropriate Visual Basic forum.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
My Blog: http://unlockpowershell.wordpress.com
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})- Proposed as answer by Zoltán HorváthMVP Wednesday, December 5, 2012 11:34 AM
- Marked as answer by Zoltán HorváthMVP Wednesday, December 12, 2012 10:31 AM
Tuesday, December 4, 2012 5:36 PM -
Check http://berezniker.com/content/pages/visual-foxpro/check-if-exe-running-and-optionally-terminate-it (can be converted to VB.NET) and links posted there.
For every expert, there is an equal and opposite expert. - Becker's Law
My blogWednesday, December 5, 2012 4:25 AM