Creates a directory
Supported Platforms: Windows, Mac OS, and Web
Signature
(vl-mkdir directoryname)
- directoryname
-
Type: String
The name of the directory you want to create.
Return Values
Type: T or nil
T if successful, nil if the directory exists or if unsuccessful.
Release Information
- AutoCAD R14 and later on Windows
- AutoCAD 2011 and later on Mac OS
Releases:
History
- directoryname argument previously accepted an ASCII text string, but now accepts a Unicode text string.
- LISPSYS system variable controls which AutoLISP engine is used and the behavior of the function.
- 0 - ASCII character support (legacy behavior)
- 1 or 2 - Unicode character support
Note: After the value of the LISPSYS system variable has been changed, AutoCAD must be restarted for the change to take affect.
AutoCAD 2021
Examples
- Windows
-
(vl-mkdir "c:\\mydirectory") T
- Mac OS and Web
-
(vl-mkdir "/mydirectory") T