Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

powershell script path

# Powershel 3+
$PSScriptRoot

# Powershell 2-
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #powershell #script #path
ADD COMMENT
Topic
Name
7+9 =