John O
John O

Reputation: 5423

Is it possible to determine what command line arguments were passed to a Windows executable?

In a unix environment, often one can just run ps and see the exact command as it was invoked, including switches and any parameter values that it may have received.

I have a Windows executable that it would be valuable for debugging purposes if I could see just what values were passed in, after it is already running. Can this be done, either with the utilities already present in a Windows default install, or something that I could download?

Upvotes: 0

Views: 67

Answers (4)

G.Nader
G.Nader

Reputation: 857

you can check command line using Task Manager :

enter image description here

Upvotes: 0

nobody
nobody

Reputation: 20163

On Windows 7 and newer (possibly Vista, but I don't have an install to check), the built-in Task Manager can do this. Go to the Processes tab, then View->Select Columns->Command Line.

Upvotes: 2

xmo
xmo

Reputation: 785

You can see this from Windows Task Manager, just a few clicks.

  1. Right click on taskbar or Ctrl-Alt-Del to open task manager.
  2. From the menu View > Select columns > Check Command Line

Upvotes: 1

Schwarzie2478
Schwarzie2478

Reputation: 2276

Sysinternals has a handy tool, process explorer. One of the column you can show for each process is the commandline.

Sysinternals is provided free from microsoft

link

Upvotes: 1

Related Questions