2014-08-28 102 views
0

我知道PowerShell 2.0不支持$ PSScriptRoot,有什么好的选择?

powershell 2.0还支持SelectNodes?

什么是使用2.0进行XML操作的很好的cmdlet?

回答

1

$ PSScriptRoot母鹿不行,替代

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

的SelectNodes支持