Tuesday, July 17, 2007

current script directory

http://blogs.msdn.com/powershell/archive/2007/06/19/get-scriptdirectory.aspx

function Get-ScriptDirectory{$Invocation = (Get-Variable MyInvocation -Scope 1).ValueSplit-Path $Invocation.MyCommand.Path}

No comments: