The source of the .Attributes trick was:function Hide-Folder{param($foldername)if(Test-Path $foldername){$(Get-Item $foldername).Attributes = Hidden}else{Write-Error "The folder ($($foldername)) was not found."}}
Get or set filedirectory attributes using Powershell
0 comments:
Post a Comment