|
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:
- The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
- Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.
Description
This sample task changes a folder to c:\documents\folder1.
Copy
<AMFILESYSTEM ACTIVITY="change_folder" FOLDER="c:\documents\folder1" />