<TITLE>componentchecker.asp</TITLE> <body bgcolor="#FFFFFF"> <% dim successSTR, FailSTR,checkSTR whichfile=server.mappath("component.ini") Set fs = CreateObject("Scripting.FileSystemObject") Set thisfile = fs.OpenTextFile(whichfile, 1, False)
counter=0
do UNTIL thisfile.AtEndOfStream counter=counter+1 thisline=thisfile.readline attempt=thisline If mid(thisline,1,1)="[" then ' ignore CheckSTR=CheckSTR & thisline & " " category=thisline thisline=thisfile.readline attempt=thisline end if on error resume next set tempobject=server.createobject(attempt) If err.number=0 then successSTR = successSTR & category & " <b>" & attempt & "</b> was created successfully<br>" else FailSTR=FailSTR & category & " <b>" & attempt & "</b> failed. Error #" & err.number & "<br>" end if set tempobject=nothing loop thisfile.Close set thisfile=nothing set fs=nothing
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.