1.

Solve : how to determine a zero byte file within a DOS batch file?

Answer»

i would like to KNOW in a batch file if a dos TEXT file was created with data in it or does it exist with zero bytes?If you pass in a FILENAME as a parameter to your batch, then this CODE will tell you how big it is

Code: [Select]Echo File %1 is %~Z1 bytes

Check the Set command (Set /?) for how to do an arithmetic comparison

Graham



Discussion

No Comment Found