“PowerShell Path” Ответ

PowerShell Script Path

# Powershel 3+
$PSScriptRoot

# Powershell 2-
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
Tukusej’s Sirs

PowerShell добавить в путь кв.

$env:Path = "SomeRandomPath";             (replaces existing path) 
$env:Path += ";SomeRandomPath"            (appends to existing path)
baruchiro

PowerShell Path


# List Paths
$Env:Path
Important Impala

Получить программу PowerShell

(get-command notepad.exe).Path
Yucky Yacare

Ответы похожие на “PowerShell Path”

Смотреть популярные ответы по языку

Смотреть другие языки программирования