Create Folder

Creates a folder. If the folder specified is a sub-folder and the parent folder(s) do not exist, then they will also be created. 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.

Declaration

<AMCREATEFOLDER FOLDER="text" />

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>

See Also: Split File, Move File, Delete File, Delete Folder, Rename Folder, Remove Folder, Touch File, Set Attributes, Read from File, Write to File, Synchronize Folders, Concatenate Files

General Tab

Property

Type

Required

Default

Markup

Description

Folder

Text

Yes

(Empty)

a)FOLDER="c:\foldername\"

b)FOLDER="c:\foldername\subfoldername"

The full path and name of the folder to create.