Getting the arguments passed to a executable using wmic
问题 I am trying to get commandline arguments of an executable which was launched by another program. I tried the command mentioned in this answer, but I can't understand the syntax :( I am trying to get the commandline arguments of an process, I have the PID & the process name, In this case I am trying get arguments of an ping command which I am using to test the command... Thanks in Advance :) 回答1: Try this: wmic process where "name='ping.exe'" get commandline /format:list Or if you prefer to