MKDIR

MKDIR

Top  Previous  Next

Action

This statement creates a folder or directory in the current directory.

 

 

Syntax

MKDIR directory

 

 

Remarks

MaKeDIRectory creates a folder or directory in the current directory.

The directory may not have a device name like COM1, LPT1, etc.

The directory may also not have a name like ".." or "\" since these names are reserved.

You can not create a directory using a path.

 

MKDIR "test"  ' ok

MKDIR "test\abc" ' NOT OK

MKDIR ".." ' NOT OK

MKDIR "\" ' NOT OK

 

MKDIR "test" : CHDIR "test" : MKDIR "abc"  ' this would create test\abc

 

 

See also

INITFILESYSTEM , OPEN , CLOSE, FLUSH , PRINT, LINE INPUT, LOC, LOF , EOF , FREEFILE , FILEATTR , SEEK , BSAVE , BLOAD , KILL , DISKFREE , DISKSIZE , GET , PUT, FILELEN , FILEDATE , FILETIME , FILEDATETIME , WRITE , INPUT , DIR, RMDIR , CHDIR , NAME

 

 

 

Example

MKDIR "test"