SyntaxFix
Write A Post
Hire A Developer
Questions
From Get-ScriptDirectory to the Rescue blog entry ...
function Get-ScriptDirectory { $Invocation = (Get-Variable MyInvocation -Scope 1).Value Split-Path $Invocation.MyCommand.Path }