how to find the size of a text file using dos command

i want to run a batch file depending on the size of a text file.
the text file may contain a number or it may not contain any number.
if its not containing any thing means its size is 2bytes. if it contains a single digit number then the size of the text file is 4 bytes.

here i have to decide if the size is 2 then i should do anything, simply i will exit, if the size is more than 2 then i have to proceed.

please help me, i am trying since 2 days for this.
 
Have u tried posting in a non .NET forum? or doing the project in .NET?

We can help you do it in .NET, but this forum doesnt cover DOS programming
 
Back
Top