Get-ChildItem | select fullname | Out-File temp.txt
$file = Get-Content "temp.txt"
foreach ($pro in $file)
{
Write-Host $pro
}本文出自 “汜水流年_” 博客,请务必保留此出处http://timefiles.blog.51cto.com/8475652/1753540
原文地址:http://timefiles.blog.51cto.com/8475652/1753540