I want a batch file to ftp to a server, read out a text file, and disconnect. The server requires a user and password. I tried
@echo off
pause
@ftp example.com
username
password
pause
but it never logged on. How can I get this to work?
batch-fileftpwindows
I want a batch file to ftp to a server, read out a text file, and disconnect. The server requires a user and password. I tried
@echo off
pause
@ftp example.com
username
password
pause
but it never logged on. How can I get this to work?
Best Answer
The answer by 0x90h helped a lot...
I saved this file as u.ftp:
I then ran this command:
And it worked!!!
Thanks a lot man :)