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