|
Answer» Hello,
This is my FIRST piost so not quite SURE how helpful this forum will be
I am trying to upload multiple files from my local system to an external FTP account. I do this via a batch file, so i have upload.bat and ftp.txt.
upload.bat contains the following:
Code: [Select]cd C: cd \Batch Files\awaiting ftp -s:..\ftp.txt move *.xml ..\processed
Then i have an ftp.txt which is this:
Code: [Select]open ftp.abd.com username password cd \IMPORT\Files prompt mput *.xml bye ftp -n
I have MANY .xml files but only 1 is being uploaded although i have turned to prompt off which stops cmd asking me what i want to do.
Can anyone see where i am going WRONG?
I would really appreciate it if someone could assist.
Kind regards,
BillyI wonder if the MOVE is being executed while the ftp session is in progress ? The ftp session finds a file and uploads it but by the time it returns all of the files have been moved out ?Quote I wonder if the MOVE is being executed while the ftp session is in progress ? The ftp session finds a file and uploads it but by the time it returns all of the files have been moved out ?
If that is the case, then you could just use start /wait .....
|