$list = $web.Lists[$folder.ParentListId]
$itemCollection = $list.GetItems($query)
foreach ($item in $itemCollection){
Write-Host $item.Name
}
我想检查文件是否以“MDNSO”开头,我该怎么写?
$list = $web.Lists[$folder.ParentListId]
$itemCollection = $list.GetItems($query)
foreach ($item in $itemCollection){
Write-Host $item.Name
}
我想检查文件是否以“MDNSO”开头,我该怎么写?