Site Tools


powershell_quick_tips

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
powershell_quick_tips [2011/03/22 11:23] paulsmithpowershell_quick_tips [2011/05/18 10:18] (current) paulsmith
Line 1: Line 1:
 +====== Powershell Quick Tips ======
 +
 +===== Remove all svn tags from current directory and children =====
 +<code>
 +W:
 +CD W:\somedirectory
 +
 +Get-ChildItem -Force -Recurse -Name -Include ".svn" | Remove-Item -Force -Recurse
 +</code>
 +
 +
 +===== Search a tree for a file =====
 +<code>
 +search from the current directory:
 +Get-ChildItem -Force -Recurse -Name -Include "test.js"
 +</code>
 +
 +