Hello,
I am trying to create a batch file that gets .xml files from a folder in my local system and pastes the contents of it to an external FTP account using the ‘mput’ command.
So i have an upload.bat file that contains this:
cd c:
cd \\LocalFolder
ftp -s:ftp.txt
move *.xml
And then an ftp.txt file that contains the ftp details:
open ftp.abc.com
username
password
cd \\RemoteFolder
mput *
quit
So when i run the batch file, what i want this to do is get the files from the \LocalFolder, connect to the FTP account and then paste it into \RemoteFolder.
This doesn’t seem to work, it nearly works but when i run the batch file i have to type in mput * into command prompt and manually hit enter against the files i want to upload which then uploads correctly.
I need this to happen automatically as the batch file will be run everyday using Task Schedular.
So my question is, can anyone seem where i am going wrong?
I really hope someone can help me out with this as i’m stuck and not really sure where to go from here.
Many thanks,