【问题标题】:In windows How get all process and their child process information in command prompt in windows 7在 windows 如何在 windows 7 的命令提示符下获取所有进程及其子进程信息
【发布时间】:2012-09-27 06:49:18
【问题描述】:

在 windows 中 Tasklist 是命令,但如何在 windows 7 中列出正在运行的进程及其子进程

【问题讨论】:

    标签: windows


    【解决方案1】:

    您可以使用以下方法获取具有 PID 和父 PID 的进程列表:

    wmic process get Caption,ParentProcessId,ProcessId
    

    给定一个父 PID,您可以列出 立即 子级:

    wmic process where (ParentProcessId=2480) get Caption,ProcessId
    

    【讨论】:

    • 示例 where 子句格式不正确。它实际上应该带有括号wmic process where ("ParentProcessId=2480") get Caption,ProcessId
    猜你喜欢
    • 2013-07-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-05
    相关资源
    最近更新 更多