<<

Contents

Search

>>

 

RENAME

 

 

Instruction

 

 

Syntax:

RENAME <Old Filename>,<New Filename> ON ERROR … END

 

<Old Filename>

= <STRING-EXPRESSION>

<New Filename>

= <STRING-EXPRESSION>

 

 

Meaning:

Renames a file.

 

In the case of an error the block ON ERROR … END is executed and the variable OK contains the error number.

 

Parameter:

Old Filename

Old filename

New Filename

New filename

 

Sample:

RENAME "Test.dat","Test.old"

       ON ERROR ERRORMES = "Error" + STR$(OK) END

 

See also:

RENAME_CLIENT

KILL

KILL_DIRECTORY