Create Folder Action Icon

Create Folder

Declaration

<AMCREATEFOLDER FOLDER="text" />

See Also

Calculate File Checksum | Change Folder | Concatenate Files | Copy File | Create Folder | Delete File | Get File(s) information | Join File | Move File | Read from File | Remove Folder | Rename File | Rename Folder

File System - Create Folder

Declaration

<AMCREATEFOLDER FOLDER="text" />

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

Description

Creates a folder. If the folder specified is a sub-folder and the parent folder does not exist, then it will also be created.

Practical Usage

Commonly used to automate the creation of a single folder. It can also create multiple folders that are numbered/named sequentially with the use of the Loop action.

Parameters

General Properties

Property

Type

Required

Default

Markup

Description

Folder

Text

Yes

(Empty)

  1. FOLDER="c:\foldername\"

  2. FOLDER="c:\foldername\subfoldername"

The full path and name of the folder to create.

 

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

Example

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

 

Example 1 - Create folder "C:\Temp\Folder1".  

 

<AMCREATEFOLDER FOLDER="C:\Temp\Folder1" />

 

 

Example 2 - Create subfolder "C:\Temp\Folder1\Subfolder1".  

 

<AMCREATEFOLDER FOLDER="C:\Temp\Folder1\Subfolder1" />

 

 

Example 3 - This sample demonstrates how to create 10 separate folders (named folder1 - folder10) using a Loop action that increments a variable by one during each iteration.

 

<AMVARIABLE NAME="counterVariable" TYPE="NUMBER">0</AMVARIABLE>

<AMLOOP TOTALLOOPS="10" RESULTVARIABLE="counterVariable">

     <AMCREATEFOLDER FOLDER="C:\Temp\Folder%counterVariable%" />

</AMLOOP>

 

↑ Top of Page