NET FTP Library
GetFTPServerType Method
Example 






KellermanSoftware.NetFtpLibrary Namespace > FTP Class : GetFTPServerType Method
Get the FTP Server type (uses the SYST command)
Syntax
'Declaration
 
Public Function GetFTPServerType() As System.String
'Usage
 
Dim instance As FTP
Dim value As System.String
 
value = instance.GetFTPServerType()
public System.string GetFTPServerType()
public function GetFTPServerType(): System.String; 
public function GetFTPServerType() : System.String;
public: System.string* GetFTPServerType(); 
public:
System.String^ GetFTPServerType(); 
Example
FTP ftp = new FTP(); //Trial Mode            
//FTP ftp = new FTP("place user name here", "place license key here");
 
// set the name of the FTP server( its URL )
ftp.HostAddress = "ftp.fsz.bme.hu"; // a hungarian university. change this to your ftp server
ftp.UserName = "anonymous"; // replace with your user name
ftp.Password = "user@mail.com"; // replace with your password
 
string result = ftp.GetFTPServerType();
Console.WriteLine("The server type is {0}",result);
Dim ftp As FTP = New FTP() 'Trial Mode
'FTP ftp = new FTP("place user name here", "place license key here");
 
' set the name of the FTP server( its URL )
ftp.HostAddress = "ftp.fsz.bme.hu" ' a hungarian university. change this to your ftp server
ftp.UserName = "anonymous" ' replace with your user name
ftp.Password = "user@mail.com" ' replace with your password
 
Dim result As String = ftp.GetFTPServerType()
Console.WriteLine("The server type is {0}",result)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FTP Class
FTP Members