Issues a command to the FTP server.

Namespace: Jscape.Ftp
Assembly: Jscape.Ftp (in Jscape.Ftp.dll) Version: 2.4.5.0

Syntax

C#
public string IssueCommand(
	string command
)
Visual Basic
Public Function IssueCommand ( _
	command As String _
) As String
Visual C++
public:
String^ IssueCommand(
	String^ command
)

Parameters

command
Type: System..::..String
The command to issue.

Return Value

The FTP server response.

Examples

This example displays the FTP server response to the NOOP command.
CopyC#
System.Console.WriteLine("Response: " + myFtp.IssueCommand("NOOP"));

Copy 
System.Console.WriteLine("Response: " + myFtp.IssueCommand("NOOP"))

Exceptions

ExceptionCondition
Jscape.Ftp..::..FtpExceptionIf an I/O or FTP error occurs.

See Also