求好心asp高手帮看下代码
好心的高手帮看一下这段代码 写的是什么意思 每一段都表达的什么 好心的高手帮看些 解释下无限感激中 <%sub backupdata() Dbpath=request.form("Dbpath") Dbpath=server.mappath(Dbpath) bkfolder=request.form("bkfolder") bkdbname=request.form("bkdbname") Set Fso=server.createobject("scripting.filesystemobject") if fso.fileexists(dbpath) then If CheckDir(bkfolder) = True Then fso.copyfile dbpath,bkfolder& "\"& bkdbname else MakeNewsDir bkfolder fso.copyfile dbpath,bkfolder& "\"& bkdbname end if response.write "<SCRIPT LANGUAGE=JavaScript>alert (' 成功备份数据!');window.location.href='admin_backupdata.asp';</script>" response.end Else response.write "<SCRIPT LANGUAGE=JavaScript>alert (' 备份数据库失败,您要备份的数据库不存在!');window.location.href='admin_backupdata.asp';</script>" response.end End if end sub '------------------检查某一目录是否存在------------------- Function CheckDir(FolderPath) folderpath=Server.MapPath(".")&"\"&folderpath Set fso1 = CreateObject("Scripting.FileSystemObject") If fso1.FolderExists(FolderPath) then '存在 CheckDir = True Else '不存在 CheckDir = False End if Set fso1 = nothing End Function '-------------根据指定名称生成目录--------- Function MakeNewsDir(foldername) Set fso1 = CreateObject("Scripting.FileSystemObject") Set f = fso1.CreateFolder(foldername) MakeNewsDir = True Set fso1 = nothing End Function %>
就是把指定的文件拷贝到指定目录中。
用用Scripting.FileSystemObject操作文件,要注意配置权限
答:点击某个button时,调用show(i),把id为"div"+i的那一层的display设为block(简单点说就是,如果你点了第一个button,就显示id...详情>>
答:在 VS 2008中,我们就开发人员所关心的一些常见的使用场景在性能上作了很大的改进.我们对新的产品功能以及现有的产品功能都设置了明确的性能指标。 例如,对于新...详情>>