Created
January 4, 2012 12:51
-
-
Save brenoferreira/1559924 to your computer and use it in GitHub Desktop.
Unhide folders in Powershell
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
$dir = New-Object System.IO.DirectoryInfo("Folder") | |
$folders = $dir.GetDirectories() | |
$folders | ForEach-Object { $_.Attributes = [System.IO.FileAttributes]::Directory } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment