ASP the introduction to the FSO Tutorial: ASP Copy Method Example Tutorial
The copied method copies the specified file or folder from one location to another.
Grammar
Fileobject.copy (Destination[,overwrite])
Folderobject.copy (Destination[,overwrite])
Parameter description
Destination required. If you copy the file or folder. Wildcard characters are not allowed
Overwrite optional. A Boolean value that indicates whether an existing file or folder can be overwritten. Really indicates that the file/folder can be overwritten, falsely indicating that the file/folder cannot be overwritten. The default is true.
For example, a file object
<%
Dim fs,f
Set Fs=server.createobject ("Scripting.FileSystemObject")
set F=FS. GetFile ("C:test.txt")
f.copy ("C:new_test.txt", false)
set f=nothing
set fs=nothing
%>
such as folder objects
<%
Dim Fs,fo
Set Fs=server.createobject ("Scripting.FileSystemObject")
set FO=FS. GetFolder ("C:test")
fo. Copy ("C:new_test", false)
set fo=nothing
set fs=nothing
%>
Www.111cn.net/asp/asp.html