ASP文件,文件夹备份操作
7 十 2005
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<% sub copyfolder sFolder=server.mappath(targetFolder) oFolder=server.mappath(newFolder) set fso=server.createobject("scripting.filesystemobject") fso.copyfolder sFolder,oFolder set fso=nothing end sub sub copyfile sFile=server.mappath(targetFile) oFile=server.mappath(newFile) set fso=server.createobject("scripting.filesystemobject") fso.copyfile sFile,oFile set fso=nothing end sub %> |