LibreOffice 25.2 Hjælp
Kopierer en fil.
FileCopy Source As String, Destination As String
Source: Et strengudtryk som specificerer navnet på den fil, du vil kopiere. Udtrykket kan indeholde valgfri sti- og drev-information. Hvis du vil, kan du angive en sti i URL-notation.
Destination: Et strengudtryk, som specificerer hvor du vil kopiere filen til. Udtrykket kan indeholde destinationens drev, stik og filnavn, eller det kan være en sti i URL-notation.
Du kan kun bruge sætningen FileCopy til at kopiere filer som ikke er åbnede.
Sub ExampleFileCopy
FileCopy "c:\autoexec.bat", "c:\Temp\Autoexec.sav"
End Sub