.exe
파일의 경로를 알고있는 경우 항목에 대한 실제 경로를 얻으려면 어떻게해야합니까?exe 파일의 경로를 아는 실제 경로를 얻는 방법은 무엇입니까?
예 :
$path = (Get-WmiObject -query "SELECT PathName FROM Win32_Service WHERE Name = 'Name of Service'").PathName
cd $path #and this command not work because $path return path with service name
예 :'으로 C : \ Windows \ System32 \ svchost.exe에 -k netsvcs' –