If you need to get a list of the processes running on a Microsoft Windows
system and the
process identifier (PID) for each of those processes, you can get the
information from a
command line interface (CLI), e.g., a
command prompt, using the
command or the
Windows Management Instrumentation Command-line (WMIC)
wmic process get name, processid.
If you wish to filter the output so that you only see information for a
specific process, you can use the
/fi option for the tasklist
command. E.g., if I only wanted to determine the PID for the
QBW32.exe process, I could use the command
tasklist /fi "imagename eq QBW32.exe".
With WMIC, you can include a "where" option, e.g.,
wmic process where
name='QBW32.exe' get name, processid.
[ More Info ]