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!

unattended ftp login

Status
Not open for further replies.

newtoitall

Technical User
Jun 16, 2005
100
GB
Hi

Trying to create a basic scheduled batch file that will login to host via ftp and download database file.

the batch file looks like that:

ftp ftp.DOMAIN.com
username >>>>>> gets stuck here User (ftp.DOMAIN.com:(none)):
password
cd private
get FILENAME.mdb
bye

Problem is that i cannot get passed the user prompt. The username passed from the batch file is doesn't show in the command line. The User prompt just remain waiting for input. However I can manually enter the username...but defeats the whole purpose.

 
Use a .FTP file called from your batch file. In your MYFETCH.BAT file
Code:
cd \Inetpub\logs\
ftp -n -s:myfetch.ftp

In your MYFETCH.FTP file
Code:
open ftp.domain.com
user myusername mypassword
binary
cd private
get "FILENAME.mdb"
Close
Quit

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top