2014-08-28 100 views
0

我知道PowerShell 2.0不支持$ PSScriptRoot,有什麼好的選擇?

powershell 2.0還支持SelectNodes?

什麼是使用2.0進行XML操作的很好的cmdlet?

回答

1

$ PSScriptRoot母鹿不行,替代

$ PSScriptRoot =拆分路徑-Parent -Path $ MyInvocation.MyCommand.Definition

的SelectNodes支持