File System - Change folder
Declaration
<AMFILESYSTEM ACTIVITY="change_folder" FOLDER="text" />
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. |
Example
NOTE:
- Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
- To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.
Description
This sample task changes a folder to c:\documents\folder1.
Copy
<AMFILESYSTEM ACTIVITY="change_folder" FOLDER="c:\documents\folder1" />