FileCopy Statement

Kopierer en fil

Syntaks


FilKopier TekstFra som streng, TekstTil som streng

Parameter

TextFrom: Any string expression that specifies the name of the file that you want to copy. The expression can contain optional path and drive information. If you want, you can enter a path in URL notation.

TextTo: Ethvert strenguttrykk som spesifiserer hvor du vil kopiere kildefilen til. Uttrykket kan inneholde målstasjonen, banen og filnavnet, eller banen i URL-notasjon.

Merknadsikon

Du kan bare bruke FileCopy-setningen til å kopiere filer som ikke er åpnet.


Feilkoder

5 Ugyldig prosedyreoppkall

76 Fann ikke stien

Eksempel:


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