CreateDirectory()

Summary

Creates a new folder (directory) with a default security descriptor set by the system.

Syntax

CreateDirectory(string dir_name)

Argument Contents
dir_name The full path name of the folder (directory) to create

Notes

  • The default security descriptor is the default for the given file system (read-only, etc.).

  • Child folders will inherit the characteristics of the parent folder.

Example

// Create a new folder MyFiles in the Data folder on drive C
CreateDirectory("C:\\Data\\MyFiles")

Error Codes

Error Type Meaning
Error The dir_name already exists, the dir_name is null or not a valid name, or CreateDirectory() failed

See Also

Function Summary
RemoveDirectory() Removes a folder (directory)