RenameFile

See Also: File I/O Commands, CopyFile, Direct_Input, EraseFile

Purpose

To change the name of a disk file.

Syntax

RenameFile {old-filename} to {new-filename}

where:

What It Does

RenameFile changes the name of a disk file. After renaming, the new file will appear in the same folder that the old file was in.

Example

This sample renames file "vendor.txt" in the "C:\MyProject\Text Files" folder to "seller.txt".

RenameFile "C:\MyProject\Text Files\vendor.txt" to "seller.txt"

Notes