FileCopy Statement

νŒŒμΌμ„ λ³΅μ‚¬ν•©λ‹ˆλ‹€.

ꡬ문:


FileCopy Source As String, Destination As String

맀개 λ³€μˆ˜:

Source: 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.

Destination: Any string expression that specifies where you want to copy the source file to. The expression can contain the destination drive, the path, and file name, or the path in URL notation.

μ°Έκ³  μ•„μ΄μ½˜

μ—΄μ§€ μ•Šμ€ 파일만 FileCopy 문을 μ‚¬μš©ν•˜μ—¬ 볡사할 수 μžˆμŠ΅λ‹ˆλ‹€.


Error codes:

5 잘λͺ»λœ ν”„λ‘œμ‹œμ € ν˜ΈμΆœμž…λ‹ˆλ‹€.

76 경둜λ₯Ό 찾을 수 μ—†μŠ΅λ‹ˆλ‹€.

예:


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