I do this with two files (there might be a more elegant way).

First is the batch that calls the ftp, which is basically just a line
that reads....
        ftp -i -s:input.txt


input.txt consists of .....
        open [host_name_or_ip]
        [username]
        [password]
        cd [your remote directory path]
        lcd [your local directory path]
        put [filename] or get [filename]
        close
        bye

HTH,
-mt

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Raja
Sent: Thursday, April 25, 2002 12:57
To: NT 2000 Discussions
Subject: Question on Telnet automation !

Hello, 
I am trying to automate telnet session from a NT batch script file.
Is there any way that I can submit the username and password for the
connection to be connected to be automated. I am always facing the
problem
of telnet window popping up and asking for inputs.
Any advice with pointers to resources or code examples would be greatly
appreciated.


Thanks 
Raja

------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to %%email.unsub%%


------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to