ASP CopyFile 메서드
❮ 완전한 FileSystemObject 개체 참조
CopyFile 메서드는 한 위치에서 다른 위치로 하나 이상의 파일을 복사합니다.
통사론
FileSystemObject.CopyFile source,destination[,overwrite]
Parameter | Description |
---|---|
source | Required. The file or files to copy (wildcards can be used} |
destination | Required. Where to copy the file or files (wildcards cannot be used} |
overwrite | Optional. A Boolean value that specifies whether an existing file can be overwritten. True allows existing files to be overwritten and False prevents existing files from being overwritten. Default is True |
예시
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
fs.CopyFile "c:\mydocuments\web\*.htm","c:\webpages\"
set fs=nothing
%>
❮ 완전한 FileSystemObject 개체 참조