最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

asp復(fù)制文件夾代碼

 更新時間:2007年01月03日 00:00:00   作者:  
復(fù)制代碼 代碼如下:

<%
Function CopyMyFolder(FolderName,FolderPath)
sFolder=server.mappath(FolderName)
oFolder=server.mappath(FolderPath)
set fso=server.createobject("scripting.filesystemobject")
if fso.folderexists(server.mappath(FolderName)) Then'檢查原文件夾是否存在
   if fso.folderexists(server.mappath(FolderPath)) Then'檢查目標(biāo)文件夾是否存在
   fso.copyfolder sFolder,oFolder
    Else '目標(biāo)文件夾如果不存在就創(chuàng)建
            CreateNewFolder = Server.Mappath(FolderPath)
            fso.CreateFolder(CreateNewFolder)
            fso.copyfolder sFolder,oFolder
   End if
 CopyMyFolder="復(fù)制文件夾["&server.mappath(FolderName)&"]到["&server.mappath(FolderPath)&"]成功!"
Else
CopyMyFolder="錯誤,原文件夾["&sFolde&"]不存在!"
End If
set fso=nothing
End Function
FolderName="2006" '原文件夾
FolderPath="2008" '目標(biāo)文件夾
response.write""&CopyMyFolder(FolderName,FolderPath)&"" '復(fù)制文件夾2006下的所有內(nèi)容到2008文件夾下并返回結(jié)果
%>

相關(guān)文章

最新評論

南丹县| 习水县| 许昌市| 阿拉善左旗| 万盛区| 太康县| 威海市| 朝阳市| 额敏县| 承德市| 济源市| 新密市| 石河子市| 彩票| 云南省| 万盛区| 图们市| 共和县| 巩留县| 徐汇区| 南雄市| 赫章县| 防城港市| 宁海县| 香港 | 友谊县| 五台县| 公主岭市| 普安县| 内乡县| 海阳市| 光泽县| 长宁县| 宣威市| 永修县| 武隆县| 绵竹市| 偃师市| 正阳县| 洞口县| 泰安市|