Batch file needed: file size 0 < Kb?

savoc

Distinguished
Dec 31, 2007
18
0
18,510
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?
 

jlanka

Splendid
Mar 16, 2001
4,064
0
22,780
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>
 

savoc

Distinguished
Dec 31, 2007
18
0
18,510
Thank you very much jlanka. Erichelps.com site were very helpful. I abandoned every DOS solutions as suggested. Script works perfectly now. :)