zoukankan      html  css  js  c++  java
  • 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

    %>

    申明

    非源创博文中的内容均收集自网上,若有侵权之处,请及时联络,我会在第一时间内删除.再次说声抱歉!!!

    博文欢迎转载,但请给出原文连接。

  • 相关阅读:
    封装了一个简单的筛选菜单控件
    安卓存储资源
    处理webp加所有的jpg到指定路径
    苹果内购
    JavaScript关于md5加密
    JavaScript关于sha1加密
    h5跳转
    python遍历文件(替换)
    python遍历文件
    安卓点击home键重启
  • 原文地址:https://www.cnblogs.com/Athrun/p/1429339.html
Copyright © 2011-2022 走看看