VBScript Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript


VBScript Examples

Bounced Mail
Bz2
Character Encoding
Digital Certificates
CSV
Digital Signatures
Email
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
PFX
RSA
S/MIME
SFTP
SMTP
Socket
Spider
SSH
SSH Key
SSH Tunnel
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
FileAccess
Byte Array
RSS
Atom
Service
PPMD
Deflate
DH Key Exchange
DSA
Bzip2
LZW

 

 

 

 

 

 

 

Get Information about a Specific Remote File

Download 32-bit Chilkat FTP2 ActiveX (.msi)

Download All 32-bit Chilkat ActiveX Components (.zip)

Download All 64-bit Chilkat ActiveX Components (.zip)

Demonstrates how to get information about a specific file on the FTP server.

set ftp = CreateObject("Chilkat.Ftp2")
ftp.UnlockComponent "any string begins the 30-day trial"

ftp.Username = "***"
ftp.Password = "***"
ftp.Hostname = "ftp.***.com"

ok = ftp.Connect()
if (ok <> 1) then
	MsgBox ftp.LastErrorText
end if

' Get information about a specific file on the remote FTP server.
' (The filename is specified exactly with no wildcard characters)
ftp.ListPattern = "test.html"

' Does that file exist?
if (ftp.NumFilesAndDirs <> 1) then
	MsgBox "File does not exist"
else
	' Display the size of the file in bytes.
	MsgBox ftp.GetSize(0)
end if


 

© 2000-2010 Chilkat Software, Inc. All Rights Reserved.

Mail Component · XML Parser