Created
July 13, 2020 15:43
-
-
Save JacobJohansen/7da4090cd877ca939dd51564316d5b87 to your computer and use it in GitHub Desktop.
get a list of file names only from directory and all subdirectories
This file contains hidden or 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
. {(cmd /c "dir /o:n /b /s")} | out-string -stream | Select-String -Pattern ".*\..*" | out-string -stream | %{ $_.Split('\')[-1] } > cleanedFilename.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment