REBOL Document

Rename - Function Summary


Summary:

Renames a file to a new name.

Usage:

rename old new

Arguments:

old - path to the old file (must be: file url)

new - new name (not a path) (must be: file url string)

Description:

Renames a file within the same directory:


    write %testfile now
    rename %testfile %remove.me
    probe read %remove.me
    delete %remove.me
    "9-Mar-2004/0:59:58-8:00"

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

Related:

delete - Deletes the specified file(s).
list-dir - Prints a multi-column sorted listing of a directory.
what-dir - Prints the active directory path


<Back | Index | Next>

Copyright 2004 REBOL Technologies