Get-ChildItem *.a | % { if(-not (Test-Path -Path "$($_.Directory)\$($_.BaseName).b" -PathType leaf)) { Write-Host $_.Name } }
powershell统计文件
最新推荐文章于 2023-11-23 23:20:05 发布
Get-ChildItem *.a | % { if(-not (Test-Path -Path "$($_.Directory)\$($_.BaseName).b" -PathType leaf)) { Write-Host $_.Name } }