I need to transfer two text files from my local PC to a directory on my server. I use a command sequence stored in FtpCommand.cmd to perform the commands in ftp, using the following command.
ftp -i -s:c:\Telex\FtpCommands.cmd
The FtpCommand.cmd command sequence is:
open ftp.mysite.it username password cd httpdocs cd subdomains cd falbrav cd httpdocs cd EXTRA cd TLX cd DATA ASCII put c:\Telex\dainviare\file1.txt put c:\Telex\dainviare\file2.dat quit
Normally everything goes well, but sometimes file2.dat (about 150-200 kb) only has 0Kb size on the destination.
How do I figure out what is failing? How can I figure out what part of the operation is malfunctioning?