How to get process command line options in Windows 2000 using C #

How to get process command line options in Windows 2000 using C #?

I am using a WMI request: select ExecutablePath, CommandLine from Win32_Process, where Name = 'test' but Windows 2000 throws this exception: system.management.managementexception: invalid request.

so I don’t know how to do this in Windows 2000, please help me, Thanks!

+4
source share
1 answer

The CommandLine property exists with Windows XP ( msdn source ):

Commandline
Data Type: String
Access Type: Read Only
The command line is used to start a specific process, if applicable. This property is new to Windows XP.

Related SO question: WMI error with simple request in C #

+4
source

Source: https://habr.com/ru/post/1309542/


All Articles