File System - Change folder

Declaration

<AMCHANGEFOLDER FOLDER="text" />

Related Topics    

Description

Changes the current folder or "working directory" for the running task. This is similar to double-clicking the folder you wish to change to in Windows Explorer or using the Cd or Chdir command in MS-DOS (For example: 'chdir c:\' or 'cd c:\').

NOTE: Use this activity only when necessary, otherwise, specify fully qualified path names such as c:\folderName\subFolderName\fileName.txt when performing file related operations.

Practical Usage

Commonly used to change the working directory when using relative paths.

Parameters

General

Property

Type

Required

Default

Markup

Description

Folder

Text

Yes

(Empty)

FOLDER="C:\Temp\FolderName"

The entire path to the folder you wish to move to.

 

Description

Error Causes

On Error

example

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

Description:

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

 

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