I have a dos batch script that uses ftp do get a file. If the file is empty, it still pulls a file with 0 bytes. Is there an automated way for me to either:
1. not get the file in the first place or
2. delete the file with 0 bytes right after it is retrieved
I have searched around for a while and have not found a solution thus far. Any information is appreciated. Thank you.
Dos batch script and ftp
Moderator: DosItHelp
Re: Dos batch script and ftp
I guess I did not word my initial post correctly. When the file does not exist, the get command was still working in such a way that a file was being created with 0 bytes. I used the mget command and it does not create a file with 0 bytes if the file does not exist. So my solution is to use mget instead of get. 
