File.CreateDirectory Method

Creates a file directory and the path to the directory.

File.CreateDirectory ( path )

Prerequisites

Directories can only be created on the devices "/ROMDISK", "/flash", and "/GPL".

Parameters

path

A String that contains the path for the directory to create, beginning with the device name and ending with the new directory name.

Remarks

This method creates a directory in the location specified by the path parameter. If any intermediate directories in the path are undefined, they are automatically created.

An error occurs if the final directory already exists.

If any error occurs, this method throws an Exception.

Examples

File.CreateDirectory("/ROMDISK/temp/new_directory") ' Create "new_directory"
' Also creates "temp" if needed

See Also

File and Serial I/O | File.DeleteDirectory