1.

Solve : FTP script batch file?

Answer»

I am trying to create a batch FILE that would make send FTP files via command prompt easier. My users are using XP Pro. But I am hitting a rock when I connect to the FTP server.

This is what i have so far: The end user will have this batch file in the root of thier local drive.

F:
CD FOLDER1
FTP 555.444.33.22
REM FTP will prompt for username
UserName1
REM FTP server will prompt for password
Password
SET DO=
SET /P DO=ENTER DO #:
PUT DIST%DO%.TXT.asc remotefile.txt.asc
REM logoff FTP server
bye
REM Close DOS window
Exit

TIA
MikeMaybe your users have disabled remote access.Or have a firewall......?Is it POSSIBLE to write a batch that will fill in the prompts for command line ftp scripts? more desciptive from my previous:

FTP 123.123.23.23 - the batch program connects to the FTP server.
UserID - FTP server prompts for UserID and the batch program enters the UserID.

etc..FTP and batch files run in two different environments. You could use the batch file to collect all the runtime info, then write a FTP script using echo statements and redirection. The batch file could then launch:

FTP -s:scriptname.scr 555.444.33.22

Good luck.



Discussion

No Comment Found