automated uploader
Posted: 21 Sep 2009 13:28
I'm trying to represent the following command line series in a batch file:
fyi ###...=ip address
C:\> ftp
ftp> open ###.###.###.###
User (###.###.###.###:(none)): username
Password: pwd
ftp> cd directory
put /local/file.txt
disconnect ###.###.###.###
In the command prompt this works perfectly but I don't know how to 'convert' it to run automatically in a .bat (containing ip address, username, and pwd of course)
Any help?
fyi ###...=ip address
C:\> ftp
ftp> open ###.###.###.###
User (###.###.###.###:(none)): username
Password: pwd
ftp> cd directory
put /local/file.txt
disconnect ###.###.###.###
In the command prompt this works perfectly but I don't know how to 'convert' it to run automatically in a .bat (containing ip address, username, and pwd of course)
Any help?