SmartFTP FTP Library
IFTPFXP Interface

This interface is implemented by the FTPFXP class.

IFTPFXP
IDL
interface IFTPFXP : IDispatch;

VBScript

Dim objSource
Set objSource = CreateObject("sfFTPLib.FTPConnectionSTA")
Dim objDestination
Set objDestination = CreateObject("sfFTPLib.FTPConnectionSTA")

' TODO: Set the connection settings
' One passive and one port
objSource.Passive = false
objDestination.Passive = true

' SSCN if secured data transfer and one of the servers support it
'objSource.SSCN = true

' Connect
objSource.Connect()
objDestination.Connect()

' FTPFXP object
Dim objFXP
Set objFXP = CreateObject("sfFTPLib.FTPFXP")
objFXP.Source = objSource
objFXP.Destination = objDestination
objFXP.FXPFile("FileFrom", "FileTo", 0, 0)
IFTPFXP Methods 
Description 
Aborts the current operation.
This method calls the Abort method of the Source and the Destination IFTPConnection. 
Transfers a file from the source to the remote connection. 
IFTPFXP Properties 
Description 
Busy 
Returns true if an operation is in progress or paused. 
Contains the destination IFTPConnection
Contains the last-error value.
You should get the LastError value immediately after a function returns. 
Contains the source IFTPConnection
Specifies if the component uses a message loop while waiting for an operation to return. The message loop dispatches the windows messages queued in the windows message queue.
Default: false 
What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.