DirCreate()

Auto Hotkey

DirCreate

Creates a directory/folder.

DirCreate DirName
Command  Example: DirCreate A_ScriptDir "\TempDir"
Function Example: DirCreate(A_ScriptDir "\TempDir")

Parameters

DirName

Name of the directory to create, which is assumed to be in %A_WorkingDir% if an absolute path isn't specified.

ErrorLevel

ErrorLevel is set to 1 if there was a problem or 0 otherwise.

A_LastError is set to the result of the operating system's GetLastError() function.

Remarks

This command will also create all parent directories given in DirName if they do not already exist.

Related

DirDelete

Example

DirCreate, C:\Test1\My Images\Folder2