Articles → POWERSHELL → Read all the file names in a given folder using Powershell
Read all the file names in a given folder using Powershell
Code
Get-ChildItem "c:\temp" -Filter *.ps1 |
Foreach-Object {
Write-Host $_.FullName
}
Output
Click to Enlarge