|REBOL 3 Docs||Guide||Concepts||Functions||Datatypes||Errors|
|TOC < Back Next >||Updated: 3-Aug-2010 Edit History|
Changes the current directory path.
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 %/C/REBOL/3.0/docs/scripts/
change-dir %./rebol-temp/ probe what-dir %/C/REBOL/3.0/docs/scripts/rebol-temp/
change-dir current delete %./rebol-temp/ probe what-dir %/C/REBOL/3.0/docs/scripts/
Note that the shorter shell friendly cd also exists.
|TOC < Back Next >||REBOL.com - WIP Wiki||Feedback Admin|