FTPDelete Method

Action2 Example

 

Encapsulates the AutoMate™ action in the “FTP” group, “FTP Delete.” The method attempts to delete a file on the FTP server.

 

Declaration

function FTPDelete (varFTPFilename As Variant,

intIncludeSubDirs As Integer) As Integer

 

Parameters

varFTPFilename

 The full path of the file on the FTP server to be deleted.

 

intIncludeSubDirs

 If set to “0”, the delete command applies to only the current directory. If set to “1”, the delete command will go through all subdirectories as well.

 

Description

The FTPDelete method attempts to delete a file on the FTP server specified by varFTPFilename.

 

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.