Powershell Tip #138: Determine the location of the current script By powershellgu | November 18, 2018 2 Comments Tip: You determine the location of the current script. PowerShell # PowerShell 3+ $PSScriptRoot # PowerShell 2 Split-Path -Parent $MyInvocation.MyCommand.Definition 12345 # PowerShell 3+$PSScriptRoot # PowerShell 2Split-Path -Parent $MyInvocation.MyCommand.Definition
Pingback: Powershell Tip #137: Convert number to binary – Powershell Guru
Pingback: Powershell Tip #139: Replace every occurence of a string in a file – Powershell Guru