在 Windows 任务列表中是命令,但如何在 Windows 7 中列出正在运行的进程及其子进程
You can get a list of processes with the PID and parent PID using:
wmic process get Caption,ParentProcessId,ProcessId
Given a parent PID you can list the immediate children with something like:
wmic process where (ParentProcessId=2480) get Caption,ProcessId
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.