Submatches requires VBS 5.5 or 5.6.
http://msdn.microsoft.com/library/en...nformation.asp
Install the latest version of the Windows Scripting Host (5.6) from
http://msdn.microsoft.com/downloads/list/webdev.asp
Ray at home
"Lynn" <0m> wrote in message
news:...
> below is the code from line 524-550.
> i am using aspnuke
>
> If Application("adoConn_ConnectionString") = "" Then
> ' read the contents of the file
> Set oFile = oFSO.OpenTextFile(oFSO.BuildPath(sPath, "global.asa"), 1)
> sContents = oFile.ReadAll
> oFile.Close
> ' find the connection string variable
> Set oRegex = New RegExp
> oRegex.Pattern = "asaConnectionString\s*=\s*""([^""]*)"""
> oRegex.IgnoreCase = True
> Set oMatches = oRegex.Execute(sContents)
> Application.Lock
> For Each oMatch In oMatches
> Application("adoConn_ConnectionString") = oMatch.SubMatches(0)
> Application("adoConn_CommandTimeout") = 1000
> Application("adoConn_ConnectionTimeout") = 500
> Next
> ' abort if the connection string could not be parsed
> If Application("adoConn_ConnectionString") = "" Then
> Response.Write "<P><B class=""error"">Unable to parse the
> asaConnectionString value from: """ & sPath & "global.asa""...
> ABORT!</B></P>"
> Response.End
> End If
> Else
> Application.Lock
> End If
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:%23mV$...
> > Sen,
> >
> > What is the relevant code in and around the area of line 538?
> >
> > Ray at work
> >
> > "Lynn" <0m> wrote in message
> > news:eTJm%...
> > > Hi,
> > > I installed asp nuke and got this error, any idea?
> > >
> > > a.. Error Type:
> > > Microsoft VBScript runtime (0x800A01B6)
> > > Object doesn't support this property or method: 'oMatch.SubMatches'
> > > /aspnuke/lib/site_lib.asp, line 538
> > >
> > >
> > > a.. Browser Type:
> > > Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR 1.1.4322)
> > >
> > > a.. Page:
> > > GET /aspnuke/admin/configure.asp
> > >
> > > a.. Time:
> > >
> > >
> > >
> >
> >
>
>