Chdir

From Bennu Wiki
Revision as of 17:24, 29 March 2009 by Sandman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Definition

INT chdir ( <STRING directoryname> )

Sets the current path of execution.

Parameters

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

Returns

INT : Success

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

Example

import "mod_dir"
import "mod_say"
import "mod_key"

Process Main()
Begin

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

    Repeat
        frame;
    Until(key(_ESC))

End

Used in example: cd(), chdir(), say(), key()


Mod_dir
Globals
Functions Cd()Chdir()Dirclose()Diropen()Dirread()Glob()Mkdir()Rm()Rmdir()