FTP using DOS Batch files

Started by
1 comment, last by Teric 21 years, 9 months ago
I am trying to automate an FTP process within a DOS shell. I normally open an FTP command by typing ''FTP '' on the command line, then subsequently entering my login id and password when I am prompted. I''m wondering if there is a way to automate this, so that I just execute a batch file or a macro or something that will automatically log in, send my login id and password, and issue commands to the FTP server. Any ideas? Thanks in advance!
I am always open to feedback, positive or negative...
Advertisement
call ftp -s

where is the path to a text file that contains one command per line, like this:

open ftp.microsoft.com
anonymous
pwd
...(whatever)
bye
Teric,

You sure could have helped yourself if you would''ve taken 2 extra seconds to type:
''ftp -help''
and seen what -s does.

My Gamedev Journal: 2D Game Making, the Easy Way

---(Old Blog, still has good info): 2dGameMaking
-----
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)

This topic is closed to new replies.

Advertisement