- May
- 13,547
- 197
I did something screwy and wound up with a lot of 0-byte files in v:\. So I gave the command
It deleted all but one quietly. The very last one was named with the single Greek letter Pi. When it got to that file, I got
Now it's the only one left, and ...
Code:
do file in /a:-d * (if %@filesize[%file] == 0 del /q %file)
It deleted all but one quietly. The very last one was named with the single Greek letter Pi. When it got to that file, I got
Code:
V:\π : Are you sure (Y/N)? ^C
Now it's the only one left, and ...
Code:
v:\> do file in /a:-d * (if %@filesize[%file] == 0 (echo %file & del /q %file))
π
V:\π : Are you sure (Y/N)? ^C