|
Answer» I was able to set up a batch file to open a telnet session, but I still have to type in my username and password for the session to actually start. Is there any way to set up the batch file to automatically enter my username and password?
any ideas or solutions are welcome.
Thanks.you can solve this problem by writing a seperate SCRIPT(not a batch file) i.e a simple text file which contains your username/pwd and any other automated steps and referencing this script from your batch file.
here is an example i used to FTP files to another server
ftps -c:600 -t:600 -s:PutNewFiles.txt DEL *.txt del *.blk del *.mpg
In the above example, "PutNewFiles.txt" is a txt file that has the following information
open 192.168.2.xxx username password bin ls mput st*.zip
when the batch file is run and the ftp starts, SINCE the batch file gives CONTROL to the ftp PROGRAM, the script is used to carry out ftp functions and control is passed back to the batch file once the ftp is complete
|