Change Folder Action Icon

Change Folder



See Also

Split File | Move File | Create Folder | Delete File | Delete Folder | Rename Folder | Remove Folder | Touch File | Set Attributes | Read from File | Write to File | Synchronize Folders | Concatenate Files

File System - Change Folder



See Also

Change Folder | Concatenate Files | Copy | Create Folder | Delete | Get Checksum | Join Files | Move | Read From File | Rename | Split File | Synchronize Folders | Touch | Write To File


Changes the current folder or "working directory" for the running task in operating systems such as Unix, DOS and Windows. If working in a Windows environment, this is similar to manually opening either My Computer or Windows Explorer and double-clicking the folder you wish to change to. In MS-DOS, this activity is identical to the CS command (i.e. cd windows). Useful in eliminating the need to specify folder locations in subsequent file related steps.

NOTE: Use this action only when necessary, otherwise utilize fully qualified path names such as 'c:\foldername\filename.txt' when performing file related actions.

Practical Usage

Commonly used to change the "working directory" when using relative paths. As opposed to a full path or absolute path  which points to the same location on one file system regardless of the working directory (usually referencing the root directory), a relative path is a path relative to the working directory of the user or application, so the full absolute path may not need to be specified.


General Properties












Specifies the path and name of the folder to change to.


Description Properties

The Description tab allows you to customize the text description of any step as it appears in the Task Builder's Steps Pane.

More on setting custom step description

Error Causes Properties

The Error Causes tab properties lets you instruct a task step to react only to specific errors or ignore certain errors that should cause it to fail.

More on Error Causes properties

On Error Properties

The On Error tab properties lets you determine what the task should do if a particular step encounters an error as defined in the Error Causes properties.

More about On Error properties

Additional Notes

Expressions, Variables & Functions

A percent sign is used as a special character in AutoMate to indicate the beginning and end of an expression. This allows variables, functions and other expressions to be entered in any text parameter of a task's properties. For example: %1+1% inside a task will resolve to 2 at runtime. A more elaborate example is %FileDateTime(myFile)% which results to the date/time of myFile. To help construct expressions, you can open Expression Builder by clicking the Insert Expression (%) button or by pressing F2.

More on expressions

More on variables

More on functions

More on extended functions
More on the expression builder


NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.


Description: Change to folder "c:\documents\folder1".  


<AMCHANGEFOLDER FOLDER="c:\documents\folder1" />

↑ Top of Page