Created
October 31, 2014 02:14
-
-
Save jorool/5938443979658bec4984 to your computer and use it in GitHub Desktop.
PowerShell Script to print file names of a directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fileEntries = [IO.Directory]::GetFiles("C:\foo"); | |
foreach($fileName in $fileEntries) { | |
[Console]::WriteLine($fileName); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment