edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Invokes the given site command on the server.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public virtual FTPReply InvokeSiteCommand(
	string command,
	params string[] arguments
)
Visual Basic
Public Overridable Function InvokeSiteCommand ( _
	command As String, _
	ParamArray arguments As String() _
) As FTPReply
Visual C++
public:
virtual FTPReply^ InvokeSiteCommand(
	String^ command, 
	... array<String^>^ arguments
)

Parameters

command
Type: System..::..String
Site-specific command to be invoked.
arguments
Type: array<System..::..String>[]()[][]
Arguments of the command to be invoked.

Return Value

The reply returned by the server.

Remarks

Site-specific commands are special commands that may be defined by a server. Such commands are defined on a server-by-server basis.

For example, a specific FTP server might define a PROCESS site-command which results in another piece of software on the server being directed to perform some sort of processing on a particular file. The command required might be:

 Copy imageCopy
            	SITE PROCESS file-path
            

In this case, the site-command would be invoked as follows:

 Copy imageCopy
            	ftpConnection.InvokeSiteCommand("PROCESS", filePath);
            

See Also