Retro Rocket OS
BASIC-Powered Operating System
Loading...
Searching...
No Matches
MKDIR Keyword
MKDIR string-expression

Creates a new directory in the filesystem.

  • string-expression must evaluate to the directory name or path.
  • Paths starting with / are absolute; other paths are relative to the current directory.
Remarks
Paths are case-insensitive, and . / .. are not supported in paths.
If the directory already exists, or the path refers to an existing file, an error is raised
(catchable with ON ERROR).

Examples

Create a directory in the current folder

MKDIR "projects"

Create a directory by absolute path

MKDIR "/data/logs"

Change into the new directory

MKDIR "assets"
CHDIR "assets"

See also

  • CHDIR - change current directory
  • RMDIR - remove a directory
  • DELETE - delete a file