Navigation:  thinBasic Modules > File >

FILE_Rename

Previous pageReturn to chapter overviewNext page

 

Description

 

Rename a file or a directory.

 

Syntax

 

n = FILE_Rename(Old_FileName, New_FileName)

 

Returns

 

Number.

0 means no errors.

 

Parameters

 

Name

Type

Optional

Meaning

Old_FileName

String

No

Original file name to be renamed

New_FileName

String

No

New name to assign to file

 

Remarks

 

Restrictions

 

See also

 

File Module,

 

Examples