REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: in-dir

in-dir  dir  block

Evaluate a block while in a directory.


dir [file!] - Directory to change to (changed back after)

block [block!] - Block to evaluate


This is useful if you need to temporarily switch to a different directory to do something, and then switch back without manually doing so.


in-dir %tmp-dir/ [tmp-files: read %.]

  TOC < Back Next > - WIP Wiki Feedback Admin