Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 windows 任务列表是命令,但如何在 windows 7 中列出正在运行的进程及其子进程
您可以使用以下方法获取具有 PID 和父 PID 的进程列表:
wmic process get Caption,ParentProcessId,ProcessId
给定一个父 PID,您可以列出直系子项,例如:
wmic process where (ParentProcessId=2480) get Caption,ProcessId