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

REBOL 3 Functions: rename

rename  from  to

Rename a file.

Arguments:

from [port! file! url! block!]

to [port! file! url! block!]

See also:

delete   list-dir   what-dir  

Description

Renames a file within the same directory:

write %testfile now
rename %testfile %remove.me
probe read %remove.me
delete %remove.me
write

This function cannot be used to move a file from one directory to another.


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin