Script request for FTP - TechRepublic
Question
March 30, 2010 at 02:34 PM
wats679

Script request for FTP

by wats679 . Updated 16 years, 3 months ago

I would like to write a script that would enable me to transfer a *.dat file from my machine to a server with an ip address.
Currently, I do this manually, and below are the commands I type in my DOS prompt window:

C:\>ftp x.x.x.
username
password
ascii
cd ai_pos_rcv
cd ai_root:[pos_rcv]
ls
put dbtr0xxx.dat
quit

How do I employ my inputs into a script so that I can run the script with all my input commands?

Appreciate it.

This discussion is locked

All Comments