PC Review


Reply
Thread Tools Rate Thread

Diagnostics.Process get by name doesn't return command line argume

 
 
=?Utf-8?B?U3RldmVD?=
Guest
Posts: n/a
 
      16th Feb 2005

I'm trying to get the command line arguments for some running processes.
When I use "Process.GetProcessesByName", the command line arguments property
is null ("").
Does anyone know how to get this info??

Thanks,
Steve
 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      16th Feb 2005

>Does anyone know how to get this info??


It's far from trivial. Here's an example of doing it in C++

http://win32.mvps.org/processes/remthread.html



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what permissions does a windows service need to execute another process? System.Diagnostics.Process process = System.Diagnostics.Process.Start(info); just local administrator? any specific permitions? Daniel Microsoft Windows 2000 Security 0 12th Apr 2006 11:47 PM
what permissions does a windows service need to execute another process? System.Diagnostics.Process process = System.Diagnostics.Process.Start(info); just local administrator? any specific permitions? Daniel Microsoft Windows 2000 0 12th Apr 2006 11:47 PM
what permissions does a windows service need to execute another process? System.Diagnostics.Process process = System.Diagnostics.Process.Start(info); just local administrator? any specific permitions? Daniel Microsoft C# .NET 0 12th Apr 2006 11:47 PM
what permissions does a windows service need to execute another process? System.Diagnostics.Process process = System.Diagnostics.Process.Start(info); just local administrator? any specific permitions? Daniel Microsoft Dot NET 0 12th Apr 2006 11:46 PM
Diagnostics.Process doesn't return argument info =?Utf-8?B?U3RldmVD?= Microsoft Dot NET Framework 0 14th Dec 2004 06:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:25 AM.