![](/img/trans.png)
[英]close windows command prompt after all process completed in the batch file
[英]In windows How get all process and their child process information in command prompt in windows 7
在 Windows 任務列表中是命令,但如何在 Windows 7 中列出正在運行的進程及其子進程
您可以使用以下方法獲取帶有 PID 和父 PID 的進程列表:
wmic process get Caption,ParentProcessId,ProcessId
給定父 PID,您可以使用以下內容列出直接子代:
wmic process where (ParentProcessId=2480) get Caption,ProcessId
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.