Tutorial

Getting Started with Macros

Macro Editor

User Interface

Menus and Toolbar

Editing Macros

Macro Debugging

How To

Using variables

Finding and modifying objects

Creating new page content

Asking for user input

Storing persistent data

Using binary data

Sorting objects

Macro menus

Bulleted and numbered lists

Accessing the file system

Sample Macros

Concepts

Expressions

Objects

Properties

Variables

Data Types

Arrays

Functions

Literals

Operators

Comments

Last updated on: February 02, 2025
Also available as a single HTML file

Onetastic Macro Documentation > Functions > File System Functions > FileSystem_CreateFolder

FileSystem_CreateFolder

Creates a folder inside a given parent folder with the given name. Returns the folder object if it is successfully created.

Syntax

Folder FileSystem_CreateFolder(
	Folder|String parent, 
	String name)

Parameters

Folder|String parent
Parent folder to create the new folder in. This can either be a Folder object or a String that contains the full path to the parent folder. The parent folder must already exist.
String name
The name for the new folder.

Examples

// Create a new folder under c:\temp $folder = FileSystem_CreateFolder("c:\\temp", "subfolder") if (IsObject($folder)) // Folder created successfully

Reference

Statements

Hierarchy Objects

Page Objects

Other Objects

Functions

Array Functions

Color Functions

Data Store Functions

Date/Time Functions

Dialog Box Functions

File System Functions

Macro Execution Functions

Macro Menu Functions

Object Functions

Special Functions

String Functions

Window Functions