Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save viniciusmelocodes/c901725f80e367a5a16ff1772225659e to your computer and use it in GitHub Desktop.
Save viniciusmelocodes/c901725f80e367a5a16ff1772225659e to your computer and use it in GitHub Desktop.
$path = "D:\trunk"
Get-ChildItem $path -Hidden -Recurse -Filter "__history" | Remove-Item -Force -Verbose -Recurse
Write-Host "Feito: __history"
Write-Host
Get-ChildItem $path -Hidden -Recurse -Filter "__recovery" | Remove-Item -Force -Verbose -Recurse
Write-Host "Feito: __recovery"
Write-Host
$pathArquivos = "D:\trunk\*"
$extensao = "*.scc"
Remove-Item $pathArquivos -Recurse -Force -Verbose -Include $extensao
Write-Host "Feito: *.scc"
Write-Host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment