Hi,
I have done some DOS batch programming in the past, but I have run into a situation where I could use some help.
How do tell if a file has 0 (zero) bytes. I have a script that goes to an FTP site to bring in a file. It creates a file even if there is nothing there, hense a file with zero bytes.
I want to be able to test for this and NOT copy it to a directory that other software is monitoring. The software process it, but generates errors. The users don't like errors.
I can do it in a *nix script, but I am at a loss to do it in DOS.
I seem to remember a batch file comparing an existing zero byte file to the new file and if it matched, then it was emtpy.
I can't find the reference and I can't find anything in my DOS manuals.
HELP.
Thanks to all.