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)
Gary
Staff Officer(IT)
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)
Gary
Staff Officer(IT)