Reputation: 587
I am looking for a way, if any exists, to view the value of CommandLine argument with which a Windows service was created. Although, this is possible for viewing from Windows Registry, recommending users to open-up registry every time for this purpose concerns me from a safety view-point.
Any suggestions are highly appreciated. Thank you.
UPDATE: I was trying to get the CMD line values to get hold of the JVM options set with the process. This is possible using Process Explorer [from Windows]. Just choose the process in question, hit properties, navigate to Environment tab and you can see all JVM options set for your process here.
Upvotes: 0
Views: 60
Reputation: 122001
On Windows Vista and Windows 7 it is possible to view the command-line of any process, including services, via the Task Manager. To view the command-line goto View->Select Columns...
and tick the Command Line
box.
Another option is to view the Service in the Services Applet. To start Start->Run
and enter services.msc
. You can then browse to the desired service, double-click it and view the Path to executable
field.
Upvotes: 1