Searching a directory for blank files

Windows xp WINDOWS XP
July 16, 2010 at 01:28:33
Specs: Windows XP

Can somebody please help.
I am trying to search a directory full of JPGs and error/move blank files/echo a message if there are blank ones present. I have written the following but is flawed:
@echo off

for /F %%A in ("\\uug-res-df43\vtx-csc-fp01_gmc$\tests\files\*txt") do If %%~zA equ 0 move \\uug-res-df43\vtx-csc-fp01_gmc$\tests\files\*txt \\uug-res-df43\vtx-csc-fp01_gmc$\tests\blankfiles


Help will be most appreciated.

See More: Searching a directory for blank files

Report •

July 19, 2010 at 20:05:57
Are you searching for blank .jpg files?

Report •

July 20, 2010 at 00:22:51
Yes, I know in the code it says txt but currently just running some tests.

Report •
Related Solutions

Ask Question