PowerTCP SSH and SFTP for .NET
ExecCommand Method




The command to execute on the remote host
Executes a command on the remote machine.
Syntax
'Declaration
 
Public Sub ExecCommand( _
   ByVal cmd As String _
) 
'Usage
 
Dim instance As Session
Dim cmd As String
 
instance.ExecCommand(cmd)
public void ExecCommand( 
   string cmd
)
public: void ExecCommand( 
   string* cmd
) 
public:
void ExecCommand( 
   String^ cmd
) 

Parameters

cmd
The command to execute on the remote host
Exceptions
ExceptionDescription
System.IO.IOException Thrown if the Session or the underlying connection is closed, or if a remote execution has already started.
Remarks

This method is available by accessing the Session property and is provided for low-level control. It is normally used by invoking the Execute(String) method.

See Also

Reference

Session Class
Session Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic