MKDIR

MKDIR dir

Creates the directory dir. dir is a string representing a valid directory name. dir can additionally contain a path. Without a path, the directory will be created in the current working directory. Errors can be catched using TRY … CATCH.

Example 1

mkdir "test"
mkdir "C:\\test"    ' In Windows use \\ instead of \

Example 2: Use TRY … CATCH

' Run this program two times to get the error messege "FILE EXISTS"
try
    mkdir "test"
catch err
    print err
end try
Code samples using MKDIR
File
If there is insufficient information on this page and you wish learn more about MKDIR, please send an email to smallbasic@gmail.com. You can help to improve information about MKDIR by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.