欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

ASP Copy 方法

定義和用法

Copy 方法把文件或文件夾從一個(gè)位置拷貝到另一個(gè)位置。

語法:

FileObject.Copy(destination[,overwrite])
FolderObject.Copy(destination[,overwrite])
參數(shù) 描述
destination 必需的。復(fù)制文件或文件夾的目的地。不允許使用通配符。
overwrite 可選的。指示是否可覆蓋已有文件或文件夾的布爾值。True 表示文件或文件夾可被覆蓋,false 表示文件或文件不能被覆蓋。默認(rèn)是 true。

針對(duì) File 對(duì)象的例子

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:\test.txt")
f.Copy("d:\new_file.txt",false)
set f=nothing
set fs=nothing
%>

針對(duì) Folder 對(duì)象的例子

<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test")
fo.Copy("d:\new_file",false)
set fo=nothing
set fs=nothing
%>