FileCopy-udtryk

Kopierer en fil.

Syntaks:


FileCopy Source As String, Destination As String

Parametre:

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.

Noteikon

Du kan kun bruge sætningen FileCopy til at kopiere filer som ikke er åbnede.


Fejlkoder:

5 Ugyldigt Procedurekald

76 Sti ikke fundet

Eksempel:


Sub ExampleFileCopy
    FileCopy "c:\autoexec.bat", "c:\Temp\Autoexec.sav"
End Sub

Støt os venligst!