0

我正在尝试在 Windows 命令提示符(Windows 8)中编写一个脚本,以找出正在运行的服务的目录位置。例如

net start // gives all the running services. I want to know the location of those services

需要帮助!

4

1 回答 1

0

以下命令使用 PowerShell 来显示您想要的内容:

powershell.exe -noexit "Get-WmiObject win32_service | select Name, DisplayName, State, PathName"

只需将其复制并粘贴到“cmd”窗口中即可。
它将显示服务名称、显示名称、状态和可执行文件的路径。

于 2015-05-16T10:23:58.750 回答