{"id":3942,"date":"2021-11-06T11:06:34","date_gmt":"2021-11-06T11:06:34","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=3942"},"modified":"2021-11-06T11:22:22","modified_gmt":"2021-11-06T11:22:22","slug":"find-file-that-is-empty-that-is-1kb","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/find-file-that-is-empty-that-is-1kb\/26287.html","title":{"rendered":"Find File That Is Empty That Is 1KB"},"content":{"rendered":"<p>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.<\/p>\n<p>Thank you in advance for the help.<\/p>\n<p>Set destination=C:\\Inbox\\ZeroKB<br \/>\nSet filename= C:\\Inbox\\ORD_SG_201108*.ASC<\/p>\n<p>for %%a in (&#8216;type %filename% ^|find &#8220;&#8221; \/v \/c&#8217;) do (IF %%a equ 0 copy \/Y %%a %destination%)<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":1},"question-category":[55],"question_tags":[],"class_list":["post-3942","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/3942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=3942"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=3942"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=3942"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=3942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}