Question Locked

FTP bacth file

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi guys, i'm creating a very simple batch file that able to upload some file to ftp. All is working fine. I would like to add in some command to my batch file so its able to check whether the script transfer successfully. So f.e, my batch file:

ftp -s:123.txt 10.xx.xx.xx > ftp.log

so..how do i continue my batch file to check whether my file was successfully upload? I request for this check because i want to move the file in my PC if the file was being transfer to FTP.
Is it possible..?? thanks!

2 replies

by tony hopkinson

pick up the error code from your ftp batch. If it fails you should get a standard ftp error code back.

Execute another one and check to see if the file exists at the destination. Be careful with that though, you could check too early.

This discussion is closed to new replies.