PowerTCP Telnet for .NET CF
Execute(String,String) Method
See Also  Send comments on this topic.
Dart.Telnet Namespace > Rsh Class > Execute Method : Execute(String,String) Method




username
The login name of the user account.
command
The command to execute.
Execute a command on the Rsh server.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Execute( _
   ByVal username As String, _
   ByVal command As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As Rsh
Dim username As String
Dim command As String
 
instance.Execute(username, command)
C# 
public void Execute( 
   string username,
   string command
)
Managed Extensions for C++ 
public: void Execute( 
   string* username,
   string* command
) 
C++/CLI 
public:
void Execute( 
   String^ username,
   String^ command
) 

Parameters

username
The login name of the user account.
command
The command to execute.

Remarks

This method executes the command specified by command. A Read method should be used to get the results.

Set ServerPort to connect to a port other than 514.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.