The Artima Developer Community
Sponsored Link

.NET Buzz Forum
C#: Welche Datei repr��sentiert einen Prozess

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
-

Posts: 1524
Nickname: nitronic
Registered: Jul, 2006

Norbert Eder works as a software architect.
C#: Welche Datei repr��sentiert einen Prozess Posted: Nov 21, 2006 11:52 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by -.
Original Post: C#: Welche Datei repr��sentiert einen Prozess
Feed Title: Norbert Eder - Living .NET
Feed URL: http://feeds.feedburner.com/NorbertEder-Livingnet
Feed Description: Copyright (c)2005, 2006 by Norbert Eder
Latest .NET Buzz Posts
Latest .NET Buzz Posts by -
Latest Posts From Norbert Eder - Living .NET

Advertisement
Da manche Prozesse mehrfach ausgef��hrt werden bzw. werden m��ssen, ist es manchmal gut zu wissen, welche DLL oder Anwendung der Ursprung eines Prozesses ist. Der nachfolgende Beispiel zeigt, wie eine die Informationen zur gesamten Prozessliste ausgegeben werden. Achtung: Die Prozesse idle und System besitzen kein main module.

Process[] processes = Process.GetProcesses();
foreach (Process p in processes)
{
try
{
Console.WriteLine(p.ProcessName + " - " + p.MainModule.FileName);
}
catch (Exception ex)
{
Console.WriteLine(p.ProcessName);
//Console.WriteLine(ex.Message);
}
}

Read: C#: Welche Datei repr��sentiert einen Prozess

Topic: Mad World - Gears of War Previous Topic   Next Topic Topic: [Virtual Earth] 3D for German Regional Settings

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use