This wiki is out of date, use the continuation of this wiki instead

Chdir

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 15:06, 26 January 2008 (edit)
Sandman (Talk | contribs)
m (Returns)
← Previous diff
Current revision (14:41, 27 January 2008) (edit) (undo)
Sandman (Talk | contribs)
m
 
Line 15: Line 15:
'''INT''' : Success '''INT''' : Success
{| {|
-| 0 || - Setting of current path of execution failed.+| 0 || - Setting of current path of execution succeeded.
|- |-
-| !0 || - Setting of current path of execution succeeded.+| !0 || - Setting of current path of execution failed.
|} |}

Current revision


Contents

[edit] Definition

INT chdir ( <STRING directoryname> )

Sets the current path of execution.

[edit] Parameters

STRING directoryname - The name of the directory to be entered from the current path of execution or a new path of execution.

[edit] Returns

INT : Success

0 - Setting of current path of execution succeeded.
 !0 - Setting of current path of execution failed.

[edit] Example

Program example;
Begin

    say(CD());
    ChDir("..");
    say(CD());

    Loop
        frame;
    End

End

Used in example: cd(), say()

Personal tools