Interactive Login Works, Script Login Fails
- From: "Arthur Dent" <hitchhikersguideto-news@xxxxxxxxx>
- Date: Thu, 2 Jun 2005 11:15:13 -0400
Hello all, here is my problem... i am writing a script for a client, to
download all files from an ftp site, which they can set up in task scheduler
to run overnights.
I have a server/username/password... and if i go to a cmd prompt, and run
the following:
ftp> open ftp.server.com
User (ftp.server.com:(none)): myuser
Password: mypwd
230 User myuser logged in.
It works perfectly. Now however, if i try to run the same exact thing in a
script, as follows:
> ftp.scr ECHO OPEN ftp.server.com
>> ftp.scr ECHO myuser
>> ftp.scr ECHO mypwd
>> ftp.scr ECHO lcd D:\MyDir
>> ftp.scr ECHO MGET *.*
>> ftp.scr ECHO DISCONNECT
>> ftp.scr ECHO QUIT
FTP -s:ftp.scr -i
This fails, with error "530 User myuser cannot log in." Ive dbl, and trpl
checked the username, password and server, and they are all correct in the
script.
Why can i login interactively, but my script fails? I wouldnt think there
would be any difference from the server's point of view. Ive done the same
exact thing though in other cases and it works perfectly. The server is
using Microsoft FTP Service, according to its connection echo: "220
Microsoft FTP Service".
Thanks in advance,
- Arthur Dent
.
- Follow-Ups:
- Fixed: Interactive Login Works, Script Login Fails
- From: Arthur Dent
- Fixed: Interactive Login Works, Script Login Fails
- Prev by Date: Re: Cant Logon to FTP/IIS
- Next by Date: Fixed: Interactive Login Works, Script Login Fails
- Previous by thread: Cant Logon to FTP/IIS
- Next by thread: Fixed: Interactive Login Works, Script Login Fails
- Index(es):
Relevant Pages
|