LibreOffice 24.8 Help
Renames an existing file or directory.
Name OldName As String As NewName As String
File: āļąāˇāˇāˇāˇāļ āļāˇāļąāˇ āļ´āˇāļģāˇāˇāˇāļāļģāļēāļāˇ āļāļāˇ āļāļąāˇāļ¸ āļāļąāˇāļāˇ āļ´āˇâāļģāļāˇāˇāļąāļēāļāˇ. āļāļļāļ§ URL āļ āļāļāļąāļē āļˇāˇāˇāˇāļāˇ āļāˇāļģāˇāļ¸āļ¯ āļāļŊ āˇāˇāļ.
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