在 Windows 中如何在 Windows 7 的命令提示符中获取所有进程及其子进程信息 [英] In windows How get all process and their child process information in command prompt in windows 7
本文介绍了在 Windows 中如何在 Windows 7 的命令提示符中获取所有进程及其子进程信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Windows Tasklist 是命令,但如何在 Windows 7 中列出正在运行的进程及其子进程
In windows Tasklist is the command but how list the Running process and their child process in windows 7
推荐答案
您可以使用以下方法获取带有 PID 和父 PID 的进程列表:
You can get a list of processes with the PID and parent PID using:
wmic process get Caption,ParentProcessId,ProcessId
给定父 PID,您可以列出 直接 子项,例如:
Given a parent PID you can list the immediate children with something like:
wmic process where (ParentProcessId=2480) get Caption,ProcessId
这篇关于在 Windows 中如何在 Windows 7 的命令提示符中获取所有进程及其子进程信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文