RENAME

REBOL Dictionary 2.0


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
    "25-Jan-2003/17:29:08-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 2003 REBOL Technologies