如何将数据从telnet服务器窗口复制并粘贴到cmd.exe,反之亦然? [英] How to copy and paste data from telnet server window to cmd.exe and vice versa?

查看:684
本文介绍了如何将数据从telnet服务器窗口复制并粘贴到cmd.exe,反之亦然?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个完美运行的控制台应用程序,但我想将它用于telnet服务器窗口,如telnet 192.168.x.x 23。我的应用程序运行到cmd.exe但我想为telnet窗口执行此任务,所以我想从服务器窗口复制数据并将其粘贴到cmd提示符上,当数据能够出现在cmd上时,它根据输入显示结果然后粘贴从cmd到telnet服务器窗口的数据。这可能吗?



请帮助我被困在这里。

谢谢。

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.

推荐答案

您可以开发自己的.NET Telnet客户端代码。这里解释了这些想法: http://geekswithblogs.net/bigpapa/archive/2007/10/08/C-2.0-and-Telnet---Not-As-Painful-As-It.aspx [ ^ ]。



这是随时可用的开源产品:http://www.csharpopensource.com/dotnettelnet [ ^ ]。



-SA
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


这篇关于如何将数据从telnet服务器窗口复制并粘贴到cmd.exe,反之亦然?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆