Encapsulates the AutoMate™ action in the “FTP” group, “FTP Change Directory.” The method attempts to change the current default directory of AutoMate™ actions performed on the FTP server.
Declaration
function FTPChangeDirectory (varNewDirectory As Variant) As Integer
Parameters
varNewDirectory
The full path of the directory on the FTP server to be used as the default directory.
Description
The FTPChangeDirectory changes the default directory to the directory specified by varDirectory. Once this method is successfully executed, all following AutoMate™ FTP commands that work with paths work relative to this directory.
A connection to the FTP server must have been previously established by a successful called to FTPLogin.
NOTE: The Action2 FTP methods (with the exception of FTPQuickSend and FTPQuickRetrieve) may not function properly in the AutoMate™ BASIC IDE. To more accurately use these functions, run the script from within an AutoMate™ task using the “Run a BASIC Script” action.