avoid download partial files with ftp

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
omarjimenez
Posts: 1
Joined: 23 Sep 2010 13:04

avoid download partial files with ftp

#1 Post by omarjimenez » 23 Sep 2010 13:15

Hi people,

I use a ftp windows commands to download files from a ftp server automatically every 5 minutes, but i have a big problem, i have to put the files in the ftp server with an external process , those files (txt files) some times are big (more than 300 Kb) so if i am uploading the txt file to the ftp server and in that moment the automatic job that download the file start, the ftp downolad a partial file because the file is still uploading..... so this is very bad for me...

Do you know if exist some way to avoid download partial files with ftp commands?

Thanks for your help

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: avoid download partial files with ftp

#2 Post by orange_batch » 23 Sep 2010 19:46

That would be a function of the FTP server, to not allow files being received to be listed until complete. The only other way I can think of would be to check each file twice with a delay, to see if it's size has changed and process accordingly.

Post Reply