Last active
January 6, 2023 13:02
-
-
Save Clijsters/d067eec4e4affc23352f7bbc96110e90 to your computer and use it in GitHub Desktop.
Everybody hates cvs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "De-CVS's" a folder structure | |
$cd = (Get-Item -Path ".\" -Verbose).FullName | |
Write-Host "Are you sure you want to recursively delete all ""CVS""-Folders in ""$cd""?" | |
if ((Read-Host) -cin {"y", "yes"}) { | |
Write-Host "Deleting..." | |
Get-ChildItem -Force -Recurse | Where-Object { $_.Name -eq "CVS" } | ForEach-Object { | |
Write-Host $_.FullName; | |
Remove-Item $_.FullName -Recurse -Force | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment