I would like to delete all files that are less than a specific size in a directory. Does anyone know if there is a Windows command that will do this? something like de
de
Try this from a batch script:
@echo off setlocal for /f "usebackq delims=;" %%A in (`dir /b *.pdf`) do If %%~zA LSS 3145728 del "%%A"