Executing commands by using Telnet in C# [duplicate]

自作多情 提交于 2019-12-02 16:51:57

问题


Possible Duplicate:
C# Telnet Library

I wish to do telnet programatically using C# so that once I establish the connection to the server, I can execute the commands like ls, ls -l, mv, rm.. etc on the server.

Is it possible? Are there classes in C# for this purpose similar to the classes for FTP (FtpWebRequest)? If yes, please direct me to the right approach.

When I execute ls, I need the list generated on server to be sent to the client i.e. windows machine in my case.


回答1:


Yes, here you have a telnet library http://www.codeproject.com/KB/IP/MinimalisticTelnet.aspx



来源:https://stackoverflow.com/questions/14359850/executing-commands-by-using-telnet-in-c-sharp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!