日期:2014-05-17  浏览次数:20861 次

ASP编程出现“ 特性指定包含文件”错误
ASP编程出现“   特性指定包含文件”错误
Active   Server   Pages   错误   'ASP   0128 '   丢失   File   或   Virtual   特性   /gg.asp,行   964   必须使用   File   或   Virtual   特性指定包含文件名。  

代码是Set   regEx   =   Nothing
    Set   regEx   =   New   RegExp
    regEx.IgnoreCase   =   True
    regEx.Global   =   True
    regEx.Pattern   =   " <!--\s*#include\s*file\s*=\s* " ".* " " "--> "
    Set   Matches   =   regEx.Execute(filetxt)
    For   Each   Match   in   Matches
      tFile   =   Replace(Mid(Match.Value,   Instr(Match.Value,   " " " ")   +   1,   Len(Match.Value)   -   Instr(Match.Value,   " " " ")   -   1), "/ ", "\ ")
      If   Not   CheckExt(FSO1s.GetExtensionName(tFile))   Then
        Call   ScanFile(   Mid(FilePath,1,InStrRev(FilePath, "\ "))&tFile,   replace(FilePath,server.MapPath( "\ ")& "\ ", " ",1,1,1)   )
        SumFiles   =   SumFiles  

行   964     是   regEx.Pattern   =   " <!--\s*#include\s*file\s*=\s* " ".* " " "--> "
请教各位!!谢谢!

------解决方案--------------------
" <!--\s*#include\s*file\s*=\s* " ".* " " "--> "

ASP直接去找这个文件了。换个写法吧
------解决方案--------------------
其它的,代码太少,没看出什么,我只知道这里:
regEx.Pattern = " <!--\s*#include\s*file\s*=\s* " ".* " " "--> "
其中引号没配对,应改为:
regEx.Pattern = " <!--\s*#include\s*file\s*=\s* " ".* " "--> "