#用户指定需要的盘符,格式如“c:\”
$zonename=Read-Host("please input need check disk zone,For example [C:\]")
CD $zonename
#A打头文件夹筛选扫描
Get-ChildItem | where {$_.Name -match "^a"} | select fullname | Out-File a.txt
$file = Get-Content "a.txt"
foreach ($a in $file)
    {
    Write-Host $a

    }
#使用完后清除文件
del a.txt