get-childitem -recurse -force | Where-Object { $_.PsIsContainer -and $_.Name -match ".svn" } | Remove-Item -recurse -force -WhatIf
Friday, June 20, 2008
Powershell: Remove all hidden .svn folders
To delete all .svn folders under the current directory execute the following Powershell command. To actually delete the folders, remove the -WhatIf switch at the end.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment