NAME

Format

NAME string1 AS string2

Description

This statement will allow you to rename a file. String1 should contain the current file name, and string2 should contain the new name for the file. If ASIC is unable to rename the file, it will set the System ERROR variable. A list of ERROR codes is contained in the Error Messages Chapter of the ASIC Manual.

Example

NAME "olddata.txt" AS "newdata.txt" IF ERROR = 0 THEN SUCCESS:
After execution of these statements, file "olddata.txt" will have been renamed to "newdata.txt"

Comments

You cannot rename a file to a new disk drive.