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.
我正在尝试在 Windows 命令提示符(Windows 8)中编写一个脚本,以找出正在运行的服务的目录位置。例如
net start // gives all the running services. I want to know the location of those services
需要帮助!
以下命令使用 PowerShell 来显示您想要的内容:
powershell.exe -noexit "Get-WmiObject win32_service | select Name, DisplayName, State, PathName"
只需将其复制并粘贴到“cmd”窗口中即可。 它将显示服务名称、显示名称、状态和可执行文件的路径。