|
ASP CopyFile Method
Complete FileSystemObject Object Reference
The CopyFile method copies one or more files from one location to another.
Syntax
|
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 |
Example
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
fs.CopyFile "c:\mydocuments\web\*.htm","c:\webpages\"
set fs=nothing
%>
|
Complete FileSystemObject Object Reference
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 3500 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
|