Home > .net > Reading command line of another process – take 2

Reading command line of another process – take 2

November 25, 2009 Leave a comment Go to comments

I’d blogged earlier about reading the command line of another process.

Raymond Chen points out that this approach still has its gotchas.

You have to understand what you are getting is non-authoritative information. In fact, it’s worse. It’s information the application itself may have changed in order to try to fool you, so don’t use it to make important decisions.

Advertisements
Categories: .net
  1. November 25, 2009 at 8:26 pm

    And now, the PowerShell version:

    gwmi -Query “Select * from Win32_Process” | format-table -autosize name, commandline

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: