Powershell Quick Tips

Remove all svn tags from current directory and children

W:
CD W:\somedirectory

Get-ChildItem -Force -Recurse -Name -Include ".svn" | Remove-Item -Force -Recurse

Search a tree for a file

search from the current directory:
Get-ChildItem -Force -Recurse -Name -Include "test.js"
powershell_quick_tips.txt · Last modified: 2011/05/18 10:18 by paulsmith
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki