LibreOffice 7.4 Hjelp
Gi nytt navn til en eksisterende fil eller katalog.
Navn GammeltNavn Som String Som NyNavn Som streng
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 "Filen eksisterer allerede"
End If
End
End Sub