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."}}
Sunday, August 7, 2016
PowerShell v2 Function Show HiddenFolder
Posted by
karjana
,
at
2:40 PM
Subscribe to:
Post Comments (Atom)