This example enables file transfer logging, specifies a non-default name and location for the file transfer log, initiates transfer logging, transfers a file from the host (using the WRQ/Reflection protocol), stops transfer logging, and finally disables transfer logging.
Sub FileTransferLoggingDemo
With Session
.TransferLogFileName = "C:\Download\TestTransfer.Log"
.TransferLoggingEnabled = True
.StartTransferLogging
.WRQReceiveFile "C:\Download\", "Test.txt", rcASCII, rcOverwrite
.StopTransferLogging
.TransferLoggingEnabled = False
End With
End Sub