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


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250