WWW.NNC.IR
Macro Reference
623
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
Mkdir
Build a directory
Format
Mkdir <directoryName>
Parameter
Return value
None.
Description
Build the directory specified in the <directoryName> parameter.
In the <directoryName> parameter, use an absolute path to specify the directory name of the directory to be
built.
In the following case, a "Illegal function call" error occurs without building a directory.
• If the specified directory already exists
• If the external memory is specified for where to build a directory in with no external memory inserted
• Free space in the disk drive specified for the directory building is insufficient for building a new directory
If an incorrect data type is specified for a parameter, a "Type mismatch" error will occur.
If a character string longer than 255 characters is specified for a character string parameter, a "String too
long" error will occur.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Usage Cautions
• None.
Example
Builds a directory named "IMAGE2" under the root folder of the E drive.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
Related Items
Parameter
name
Data type Description
<directoryName>
Character
string type
Directory name of built directory
Mkdir "E:\IMAGE2"
Dskf (Reference: X Details (p.506)) Fcopy (Reference: X Details (p.522))
GetSystemData (Reference: X Details (p.546)) IsFile (Reference: X Details (p.577))
Kill (Reference: X Details (p.587)) Rmdir (Reference: X Details (p.666))