Batch file needed: file size 0 < Kb?

What im trying to do here is a batch file wich would check if file is over 0 kb. All below 0kb files will be deleted and after deletion batch program ends.

I have searched all aver the net for an example script, did'nt find any. Is here gurus enough to solve this?
2 answers Last reply
More about batch file needed file size
  1. there is no native DOS method of doing this. <A HREF="http://www.ericphelps.com/batch/samples/filesize.txt" target="_new">this guy talks about some tricks</A> to get the task accomplised.

    <i>It's always the one thing you never suspected.</i>
  2. Thank you very much jlanka. Erichelps.com site were very helpful. I abandoned every DOS solutions as suggested. Script works perfectly now. :)
Ask a new question

Read More

File Size Windows