954,525 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

FTP from a DOS BAT file

Can anyone give me an example of a DOS BAT file (script) that could FTP a file (variable)? I've got the Linux problem solved, but I need to do it in a DOS environment.
Thanks,
John

musicalsailor
Newbie Poster
5 posts since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

Sure. Try this one:

http://paste.ubuntu.com/120401/

It is a little complicated. You can do just like this:

(
echo open myserver.ftp.com
echo login
echo password
echo send myfile.txt
echo quit
)>example.ftp
ftp -s:example.ftp
del /q /a /f example.ftp

Hawkeye Python
Light Poster
34 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: