Created
November 23, 2017 14:42
-
-
Save MagicAndi/6320a024b5eb813f60ee3dc65bc0dc61 to your computer and use it in GitHub Desktop.
List folders in a directory to set depth and then output listing to file. Requires PowerShell v5+
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
Get-ChildItem -Recurse -Directory -Depth 2 | Out-File C:\Temp\FolderListing.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment