Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Demonstrate FTP Session Logging
Demonstrates how to turn on session logging for any FTP operation.
set ftp = CreateObject("Chilkat.Ftp2")
ftp.UnlockComponent "any string begins the 30-day trial"
ftp.Username = "***"
ftp.Password = "***"
ftp.Hostname = "ftp.***.com"
' Turn on session logging.
ftp.KeepSessionLog = 1
ok = ftp.Connect()
if (ok <> 1) then
MsgBox ftp.LastErrorText
end if
localFile = "examples.zip"
remoteFile = "x.zip"
ok = ftp.PutFile(localFile, remoteFile)
if (ok <> 1) then
MsgBox ftp.LastErrorText
end if
' Show the session log from the point that session logging
' was turned on.
MsgBox ftp.SessionLog
|
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.