$fs = New-Object -ComObject scripting.filesystemobject
Get-ChildItem E:\--TV--\ -force | Where-Object {$_.psiscontainer} | ForEach-Object {
if($fs.getfolder($_.fullname).size -lt 200mb) {$_.attributes = "directory,hidden"}
else{$_.attributes = "directory"}
}
|