Winforms telnet连接应用程序 [英] Winforms application for telnet connection
问题描述
Winforms telnet连接申请
您好,
我正在尝试创建一个Windows应用程序建立连接并从winforms执行命令,如命令提示符。
我尝试使用commandprompt类也使用cmd.exe创建新进程但我收到错误并在建立时telnet连接cmd提示应用程序正在关闭。
使用cmd我们可以执行以下操作...
C :\> telnet /?
C:> telnet 100.15.21.4 1000
Shell:
用户名:root
密码:root
连接将成功建立。
shell> ps
显示设备详情
shel> hlep
显示所有命令
这些所有功能都可以使用winform.Establish连接,命令输入也显示执行的数据。
请帮帮我。
谢谢提前..
Radha
Winforms application for telnet connection
Hi ,
I am trying to create a windows application to establish connection and execute the commands from winforms like command prompt.
I tried with commandprompt class also creating new process with cmd.exe but i am getting errors and while establishing telnet connection cmd prompt application is closing.
using cmd we can do following...
C:\>telnet /?
C:> telnet 100.15.21.4 1000
Shell :
User name : root
password :root
connection will establish successfully.
shell > ps
show details of device
shel> hlep
show all commands
These all functionality should work using winform.Establish connection ,command inputs also show the executed data.
Please help me.
Thanks in advance..
Radha
推荐答案
忘记命令提示符;这是双重错误(你可以使用可用的telnet应用程序,因为CMD.EXE完全不相关,但即使使用telnet应用程序也没什么意义)。例如,使用这个开源产品: http://telnetcsharp.codeplex.com [ ^ ]。
祝你好运。
-SA
Forget command prompt; this is doubly wrong (you could use available telnet application instead, as CMD.EXE is totally irrelevant, but even using the telnet application makes very little sense). Use, for example, this open-source product: http://telnetcsharp.codeplex.com[^].
Good luck.
—SA
这篇关于Winforms telnet连接应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!