I face a problem with writing on telnet process

Dec 11 2010 3:37 AM
Hi Guys, 

Actually, I've been started a telnet process and passed the Arguments to it. 

every thing is OK till now, I connect and prompt to enter the username. 

what should I use to write?, as I tried StreamWriter and StandardInput but didn't sucess. 

public void TelnetProcess() 



Process p = new Process(); 

p.StartInfo.FileName = "telnet.exe"; 

p.StartInfo.Arguments = "192.168.1.254 23"; 

p.StartInfo.UseShellExecute = false; 

p.Start(); 



Thank you for help

Answers (1)