是否可以在cmd/batch中像在ctrl+alt+del/ctrl+shift+esc中一样获取进程列表?
有几种方法:
你可以使用 tasklist,wmic process list(在大多数 Windows 电脑上),或者如果你使用 Powershell,则可以使用 get-process。
tasklist
wmic process list
get-process
还有另一个优秀的来自SysInternals的程序,名为PsList。
尝试使用tasklist命令。
在此处查看文档:http://ss64.com/nt/tasklist.html
您可以使用taskmgr.exe、call taskmgr.exe、start taskmgr.exe等命令来打开任务管理器。
taskmgr.exe
call taskmgr.exe
start taskmgr.exe