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