Möchte man In PowerShell den Pfad auf den Pfad setzen, wo das Skript liegt, so ist der folgende Befehl notwendig:
$path = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
Set-Location $path
Möchte man In PowerShell den Pfad auf den Pfad setzen, wo das Skript liegt, so ist der folgende Befehl notwendig:
$path = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
Set-Location $path