1.

Solve : If SIZE=0 then ...?

Answer»

Hello,

I WOULD like to test the SIZE of a file and if this size is null (if there is nothing in the TXT file) then goto a next step.
My OS is W2003

Is there any genius who knows how to do that?

Thank you.

FranckWhat is the purpose of a worthless test.
In a Win2003 environment a SCRIPT can handle this thru the FileSystemObject and the GetFile method. Batch files can process file sizes only on call or for statements not on a if.

Hope this helps.



Discussion

No Comment Found