REBOL Document

Change-dir - Function Summary


Changes the active directory path.


change-dir dir


dir - new directory path (must be: file)


Changes the value of system/script/path. This value is used for file-related operations. Any file path that does not begin with a slash (/) will be relative to the path in system/script/path. When a script file is executed using the DO native, the path will automatically be set to the directory containing the path. When REBOL starts, it is set to the current directory where REBOL is started.

    current: what-dir
    make-dir %./rebol-temp/
    probe current

    change-dir %./rebol-temp/
    probe what-dir

    change-dir current
    delete %./rebol-temp/
    probe what-dir


list-dir - Prints a multi-column sorted listing of a directory.
make-dir - Creates the specified directory. No error if already exists.
what-dir - Prints the active directory path

<Back | Index | Next>

Copyright 2004 REBOL Technologies