Windows PowerShell Commands: Remove-Item Delete al file that is both h

Please Visit: http://lifelongprogrammer.blogspot.com



Windows PowerShell Commands: Remove-Item

Delete al file that is both hidden and read-only:

Remove-Item -Recurse -Force .\incubator-blur

Remove-Item c:\scripts\* -exclude *.wav

Remove-Item c:\scripts\* -include .txt -exclude *test

Delete only a folder called ss64:

PS C:\> remove-item ss64 | Where { $_.PSIsContainer }

Delete only a file called ss64:

PS C:\> remove-item ss64 | Where { ! $_.PSIsContainer }



from Google Plus RSS Feed for 101157854606139706613 https://plus.google.com/101157854606139706613/posts/dJ3NJMe83ds

via LifeLong Community

No comments:

Post a Comment