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.

рджреНрд░рд╖реНрдЯрд╡реНрдп рдкреНрд░рддрд┐рдорд╛

рддрдкрд╛рдИрдБ рддреА рдирдЦреЛрд▓рд┐рдПрдХрд╛ рдлрд╛рдЗрд▓рд╣рд░реВрд▓рд╛рдИ рдорд╛рддреНрд░реИ рдкреНрд░рддрд┐рд▓рд┐рдкрд┐ рдЧрд░реНрди рдкреНрд░рддрд┐рд▓рд┐рдкрд┐ рдлрд╛рдЗрд▓ рдХрдерди рдкреНрд░рдпреЛрдЧ рдЧрд░реНрди рд╕рдХреНрдиреБрд╣реБрдиреНрдЫ ред


рддреНрд░реБрдЯрд┐ рд╕рдЩреНрдХреЗрддрд╣рд░реВ

5 рдЕрд╡реИрдз рдХрд╛рд░реНрдп-рд╡рд┐рдзрд┐ рдХрд▓

76 рдорд╛рд░реНрдЧ рдлреЗрд▓рд╛ рдкрд░реЗрди

рдЙрджрд╛рд╣рд░рдг:


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