ASP错误解决:800a003a错误

  • 来源: 天新网 作者: 若水   2008-04-25/11:17
  • 参照其他文件修改的,网站终于恢复正常,不懂程序,所以不知道原理,大致是加个判断吧。
    原来的代码:

    For p=1 to mpage step 1
    dim fso,ktemplate,kyp
    set fso=createobject("scripting.filesystemobject")
    set ktemplate=fso.opentextfile(server.mappath("../muban/create_html.ASP"))
    kyp=ktemplate.readall
    ktemplate.close
    set ktemplate=nothing
    fso.CreateFolder(server.mappath("..\diqu"&address))
    if s_id=0 then
    ...

    修改后的代码:

    For p=1 to mpage step 1
    dim fso,ktemplate,kyp
    set fso=createobject("scripting.filesystemobject")
    set ktemplate=fso.opentextfile(server.mappath("../muban/create_html.asp"))
    kyp=ktemplate.readall
    ktemplate.close
    set ktemplate=nothing
    if fso.FolderExists(server.mappath("..\diqu"&address)) then
    '
    else
    fso.CreateFolder(server.mappath("..\diqu"&address))
    end if
    if s_id=0 then
    ...


    评论 {{userinfo.comments}}

    {{money}}

    {{question.question}}

    A {{question.A}}
    B {{question.B}}
    C {{question.C}}
    D {{question.D}}
    提交

    驱动号 更多