Answers for "powershell get current path of script"

1

powershell script path

# Powershel 3+
$PSScriptRoot

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

Code answers related to "powershell get current path of script"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language