Answers for "powershell get script execution path"

1

powershell script path

# Powershel 3+
$PSScriptRoot

# Powershell 2-
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
Posted by: Guest on September-21-2020
0

get program path powershell

(get-command notepad.exe).Path
Posted by: Guest on September-28-2021

Code answers related to "powershell get script execution path"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language