I am sure there are a hundred better ways to do this, but, this is what I came up with for a quick fix.function Show-HiddenFolder{param($foldername)if((Test-Path $foldername) -and ((Get-Item $folderName).PSIsContainer)){$(Get-Item $foldername -Force).Attributes = Directory}else{Write-Error "The folder ($($foldername)) was not found."}}
PowerShell v2 Function Show HiddenFolder
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment