title: Executing commands by using Telnet in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/390188/c-sharp-telnet-library">C# Telnet Library</a>  </p>
  </blockquote>
  
  
  
  <p>I wish to do <strong>telnet</strong> programatically using C# so that once I establish the connection to the server, I can execute the commands like <em>ls, ls -l, mv, rm.. etc</em> on the server.</p>
  
  <p>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.</p>
  
  <p>When I execute <em>ls</em>, I need the list generated on server to be sent to the client i.e. windows machine in my case.</p>