|
Answer» hello,
I am using a batch file to run a query, zip it and ftp it to a server. It all works FINE except the ftp command completes almost straight away, while the file i'm uploading is 12 mb. I'm using ftp -s:login.txt Myserver
login.txt: username password delete rainbow data.zip put rainbow data.zip QUIT
if I remove the quit, the file gets uploaded but the bat doesn't complete??? can anyone HELP?I'm not very familiar with FTP, but try inserting a CLOSE command between the PUT and QUIT statements.
Hope this helps. No doesn't help, It's like the put command isn't being monitored because its in an external file, I guess what I'm asking is either can I put a switch or something to make it wait til the put command has completed OR is there any WAY of putting the COMMANDS in the bat file without needing user input??? I was able to find this on the Web which may be helpful.
SimoTime
Scroll down to An Automated, Batch FTP Session.
Good luck.
|