IBM Lotus Symphony
|
Renames an existing file or directory.
Name OldName As String As NewName As String
OldName, NewName: Any string expression that specifies the file name, including the path. You can also use URL notation.
Sub ExampleReName
On Error Goto Error
Filecopy "c:\autoexec.bat", "c:\temp\autoexec.sav"
Name "c:\temp\autoexec.sav" as "c:\temp\autoexec.bat"
end
Error:
if err = 58 then
msgbox "File already exists"
end if
end
end sub