用于在 Windows 中定位 "Service" 个位置的脚本
Script for locating "Service" locations in Windows
我正在尝试在 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" window。
它将向您显示服务名称、显示名称、状态和可执行文件的路径。
我正在尝试在 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" window。
它将向您显示服务名称、显示名称、状态和可执行文件的路径。