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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.