Search code examples
windowsbatch-filecmdtasklist

How to get tasklist information from cmd, without using "tasklist" command


Anyone knows how to extract the tasklist information using cmd, but without using "tasklist /svc" command?


Solution

  • You can use WMIC, something like :

    WMIC PROCESS get Caption,Commandline,Processid