Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automate FTP Batch Script

Status
Not open for further replies.

SJTech

Programmer
Jul 3, 2001
26
GB
I have an export file I want to automatically ftp across to another server. This export file has a sequential number as a part of its filename. ie. sry000n.txt (where n is a sequential number)

I have vbs file which creates a ftp batch file such as the one below.

open nnn.nnn.nnn.nnn
.ftptest.tst.ch.hq.surrey
guest
put \\app1\d\apps\dbs\training\scc_exp\sry000n.txt
quit

But when I run this batch file using

ftp -s:testfile.scr

The script does not work becuase the user name promt comes up and waits for input as does the password. Why can't I run this unattended.

Gary
Staff Officer(IT)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top