AMMakeDir Method

Action2 Example

 

Encapsulates the AutoMate™ action in the “File I/O” group, “Create a directory.” The method attempts to create the specified directory.

 

Declaration

function AMMakeDir (varDirectory As Variant) As Integer

 

Parameters

varDirectory

 The name of the directory to be created (including path, if necessary)

 

Description

The AMMakeDir method attempts to create the directory specified by varDirectory.

 

If the directory is successfully created, AMMakeDir returns “0.” If an error occurs, AMMakeDir returns “1.” In this case, use the GetLastError property to retrieve the error message AutoMate™ generated when creating the directory.