Name (statement)

<< Click to Display Table of Contents >>

Name (statement)

Name OldName As NewName

Renames the file OldName to NewName.

Each of the two parameters must identify an individual file. Wildcard characters such as "*" or "?" are not allowed.

See also: ChDir, Kill

Example:

Sub Main

 Name "testfile" As "newtest"

End Sub