Last active 3 months ago

csmith1865's Avatar csmith1865 revised this gist 3 months ago. Go to revision

1 file changed, 1 insertion

Delete every other file.ps1 (file created)

@@ -0,0 +1 @@
1 + $i=0; Get-ChildItem -File | Sort-Object Name | ForEach-Object { if($i++ % 2 -eq 0) { Remove-Item $_.FullName -Force } }
Newer Older