Skip to content

Instantly share code, notes, and snippets.

@erlangparasu
Created February 5, 2017 22:09
Show Gist options
  • Save erlangparasu/d3e8a611dd1693984f280d4a20cbbce9 to your computer and use it in GitHub Desktop.
Save erlangparasu/d3e8a611dd1693984f280d4a20cbbce9 to your computer and use it in GitHub Desktop.
Get the command tasklist. Tags: windows, cmd, task, tasklist, command, commandline.
:: https://superuser.com/questions/683021/how-to-get-the-command-that-invoked-a-task-with-tasklist/683052#683052
wmic process where caption="test.exe" get commandline,processid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment