C
C
Chvalov2015-11-28 02:32:20
cmd/bat
Chvalov, 2015-11-28 02:32:20

How to delete all files with size 0 bytes using Windows command prompt?

Is there a way to remove all files with a size of 0 bytes from the desired directory using Windows?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wisgest, 2019-05-24
@wisgest

pushd "D:\нужный каталог"
for %%I in (*) do if %%~zI equ 0 del "%%~I"
popd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question