|
CreateDir
int
CreateDir (string
dirame)
Return
Value
Returns OK if the directory has been
successfully created. Otherwise, returns FAIL.
Parameters
dirname
–the
name of the directory to be created.
Remarks
Call this
function to create the directory indicated by
dirname.
Package
Plug in module:
nd_fileplg.npl
Example
The following
example demonstrates the use of CreateDir.
# Example for CreateDir
if(CreateDir("C:\TestDir")
== -1)
Println("Failed
to create the directory.")
else
Println("The
directory has been successfully created.")
endif
RmDir("C:\TestDir")
Output of the
example script:
The directory has been
successfully created.
|