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


Picture showing the output of reading all the file names in a given folder using Powershell
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, April 24, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250