I am running a .bat file that calls an ftp server and references the commands using a .txt file. Everything is working well.
My problem is when the built in windows FTP client tries to download a file from the ftp server using the get command, if the file does not exist on the server, it wipes out the file that is locally on my C: drive and leaves me with a blank file.
I must always keep the field headers in this file and as such I must make sure that if there is no file on the server to leave the one locally alone.
How can this be done?
(Is there a way to first look to see if the file exist and only then initiate the download?)
Need help - - - - - - Thanks!
My problem is when the built in windows FTP client tries to download a file from the ftp server using the get command, if the file does not exist on the server, it wipes out the file that is locally on my C: drive and leaves me with a blank file.
I must always keep the field headers in this file and as such I must make sure that if there is no file on the server to leave the one locally alone.
How can this be done?
(Is there a way to first look to see if the file exist and only then initiate the download?)
Need help - - - - - - Thanks!