(VBScript) FTP FEAT Command
Sends a FEAT command to the FTP server and returns the response.
Here is a typical response:
211-Features:
MDTM
REST STREAM
SIZE
MLST type*;size*;modify*;
MLSD
AUTH SSL
AUTH TLS
UTF8
CLNT
MFMT
211 End
Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
'Create a Unicode (utf-16) output text file.
Set outFile = fso.CreateTextFile("output.txt", True, True)
' This example requires the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.
' For versions of Chilkat < 10.0.0, use CreateObject("Chilkat_9_5_0.Ftp2")
set ftp = CreateObject("Chilkat.Ftp2")
ftp.Hostname = "ftp.example.com"
ftp.Username = "test"
ftp.Password = "test"
' Connect and login to the FTP server.
success = ftp.Connect()
If (success <> 1) Then
outFile.WriteLine(ftp.LastErrorText)
WScript.Quit
End If
ftpResponse = ftp.Feat()
outFile.WriteLine(ftpResponse)
success = ftp.Disconnect()
outFile.Close
|