Click here to Skip to main content
16,016,306 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have created one console application its running perfectly but i want to use it for telnet server window like "telnet 192.168.x.x 23" . my app running into cmd.exe but i want to do this task for telnet window so I want to copy data from server window and paste it on cmd prompt and when data able to appear on cmd it shows result according to input and then paste the data from cmd to telnet server window. is this possible?

Please help i am stuck here.
Thanks.
Posted

1 solution

You can develop your own .NET Telnet client code. The ideas are explained here: http://geekswithblogs.net/bigpapa/archive/2007/10/08/C-2.0-and-Telnet---Not-As-Painful-As-It.aspx[^].

This is the ready-to-use open-source product: http://www.csharpopensource.com/dotnettelnet[^].

—SA
 
Share this answer
 
Comments
Member 11543226 19-May-15 2:42am    
Thank you sir for fast reply. But one from my colleague already made telnet server by embedded programming and my machine successfully connect with his server but as my app works on cmd.exe i want to execute it after connected on his server. Because when he scans barcode the number appears on server window i want to capture this in my program and show output on that server window.
Sergey Alexandrovich Kryukov 19-May-15 8:01am    
I am suggesting to write or use client-side Telnet implementation...
It is unclear why would you want to use CMD, but you can; and your client can work with the clipboard, but you cannot modify behavior of CMD.EXE. I'm not sure you really need it.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900