AMChangeDir Method

Action2 Example

 

Encapsulates the AutoMate™ action in the “File I/O” group, “Change directory.” The method attempts to change the current default directory to the specified directory.

 

Declaration

function AMChangeDir (varDirectory As Variant) As Integer

 

Parameters

varDirectory

 The name of the directory to be changed to.

 

Description

The AMChangeDir method attempts to change the current default directory to varDirectory. If successful, all subsequent file I/O commands use this directory as their relative path.