|
Summary
Specifies the type of FTP server that the client will be connecting to.
Description
The HostType property is used to set the host type of the remote machine. The HostType is used when parsing the server reply, and during multiply get file operations.
The default value is SERVER_AUTODETECT. If the automatic detection fails the host type will default to SERVER_UNIX. This property can be changed at run time only.
If the remote machine does not support the SYST command to determine the type of server, then this property should be set to the type of the FTP server.
The following values are supported:
| Value |
Meaning |
| SERVER_AUTODETECT |
The FTP Client ActiveX will automatically detect the server type. |
| SERVER_UNIX |
Unix FTP Server |
| SERVER_ULTRIX |
Ultrix FTP Server |
| SERVER_VMS_UCX |
VMS UCX FTP Server |
| SERVER_DISTINCT |
Distinct FTP Server |
| SERVER_FTP_DOS |
FTP Software DOS FTP Server |
| SERVER_DOS |
DOS FTP Server |
| SERVER_IBM_VM |
IBM VM FTP Server |
| SERVER_IBM_AIX |
IBM AIX FTP Server |
| SERVER_VMS_MULTINET |
DEC VMS TGV Multinet FTP Server |
| SERVER_VMS_FUSION |
DEC VMS FTP Server |
| SERVER_VMS_WGONG |
DEC VMS Wollongong FTP Server |
| SERVER_VMS_UCX_2 |
VMS UCX Version 2 FTP Server |
| SERVER_IBM_MVS_2 |
IBM MVS Version 2 FTP Server |
| SERVER_IBM_MVS_3 |
IBM MVS Version 3 FTP Server |
| SERVER_IBM_OS2 |
IBM OS/2 FTP Server |
| SERVER_VMS_PROCESS |
DEC VMS Process TCPWare FTP Server |
| SERVER_IBM_AS_400 |
IBM AS 400 FTP Server |
| SERVER_IBM_MVS_4 |
IBM MVS Version 4 FTP Server |
| SERVER_IBM_AS_400_3 |
IBM AS 400 Version 3 FTP Server |
| SERVER_WINDOWS_NT |
Windows NT FTP Server |
Example
FTPClient.HostType = SERVER_DISTINCT
FtpClient.Connect (ftp.distinct.com, "santa", "northpole", "")
If Result = False Then
MsgBox "Unable to connect to server", 64, "Sample Program"
End if.
|