|
<< 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.
Example:
Sub Main
Name "testfile.png" As "newtest.png"
End Sub
Example for changing the path in addition to the name:
Sub Main
Name "e:\testfile.png" As "d:\newtest.png"
End Sub