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

Cd

From FenixWiki

Revision as of 19:52, 29 August 2008 by Sandman (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search


Contents

[edit] Definition

STRING cd ( [<STRING folder>] )

Sets the current path of execution if folder was specified and returns it.

Note that it is highly recommended to use chdir() for changing the current path of execution, as cd() will make Fenix crash when a folder is specified and the returned path of execution is used in the Fenix program. Just using cd() without a folder is not a problem.

[edit] Parameters

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

[edit] Returns

STRING : The current path of execution.

[edit] Example

Process Main()
Begin

    say(cd());
    say(chdir(".."));
    say(cd());

    Repeat
        frame;
    Until(key(_ESC))

End

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


Files Functions
Cd() • Chdir() • Fclose() • Feof() • Fgets() • File() • File_exists() • Flength() • Fopen() • Fputs() • Fread() • Fseek() • Ftell() • Fwrite() • Glob() • Load() • Mkdir() • Rmdir() • Save() •
Personal tools