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.
如何使用任何命令行工具知道该进程正在运行哪个命令,我知道在进程资源管理器的帮助下我们可以看到它,但是我可以使用任何命令行工具(独立)或 java 方法来提取它信息?
有一个名为PsList的工具,它提供有关进程的基本信息,但没有选项可以查看命令行
我找到了不依赖其他工具或进程资源管理器的方式,使用 Windows WMI 服务,从命令提示符运行以下命令:
WMIC path win32_process get Caption,Processid,Commandline
它只是解决了我的问题。