亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

ASP Copy 方法

定義和用法

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

語法:

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

針對 File 對象的例子

<%
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
%>

針對 Folder 對象的例子

<%
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
%>