1
我不知道是否有使用使用PowerShell的选择对象cmdlet如何使用PowerShell选择对象
这里的时候,做一个子的方式时使用的子是我想要做榜样
$sapFile = "C:\MyFile*.XML"
# Get the newest xml file
$newestFile = Get-ChildItem -Path $sapFile | Sort CreationTime | Select -Last 1
# get the contents of the xml file
[XML]$sapContent = Get-Content -Path $newestFile.FullName
$sapContent.DATA.CP | Select -Property CP_NO,MEN.Substring(0,4)
但是这不起作用。
感谢
谢谢,像魅力一样工作 –