MKDIR statement

Purpose

Create a subdirectory/folder (like the DOS MKDIR command).

Syntax

MKDIR path$

Remarks

path$ is a string expression describing the directory to be created.

MKDIR (make directory) creates the subdirectory specified by path$.  If you try to create a directory that already exists, a run-time Error 75 occurs ("Path/file access error").  If path$ includes an parent folder that does not exist, a run-time Error 76 occurs ("Path not found").

MKDIR can use Long File Names (LFNs).

See also

CHDIR, RMDIR

Example

MKDIR "C:\Program Files\Company\Application Data"