|Hi folks, I have a situation in which some files that were send over from a application is empty but with file size. As such I could not use filesize to determine if the file is empty. I have tried to count the number of lines but not successful. I have tried the code below but fail. |
Thank you in advance for the help.
Set filename= C:\Inbox\ORD_SG_201108*.ASC
for %%a in ('type %filename% ^|find "" /v /c') do (IF %%a equ 0 copy /Y %%a %destination%)