automated uploader

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
spitfire451
Posts: 1
Joined: 21 Sep 2009 13:16

automated uploader

#1 Post by spitfire451 » 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?

Post Reply