asp 遍历磁盘 和 asp 遍历sql数据库
asp 遍历磁盘
<%
' set fs=CreateObject("Scripting.FileSystemObject")
' set f=fs.GetFolder(Server.MapPath("."))
' set fc=f.Files
' Set fg = f.SubFolders
'
' for each f1 in fc
' if fs.fileExists(Server.MapPath(f1.name)) then
' fs.deleteFILE Server.MapPath(f1.name)
' end if
' next
' for each f2 in fg
' fs.deletefolder(server.mappath(f2.name))
' next
'
'end if
%>
asp 遍历sql数据库
<%
' set rsSchema=conn.openSchema(20)
' rsSchema.movefirst
' Do Until rsSchema.EOF
' if rsSchema("TABLE_TYPE")="TABLE" then
' conn.execute("drop TABLE "&rsSchema("TABLE_NAME") )
' end if
' rsSchema.movenext
' Loop
%>
申明
非源创博文中的内容均收集自网上,若有侵权之处,请及时联络,我会在第一时间内删除.再次说声抱歉!!!
博文欢迎转载,但请给出原文连接。