Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
990 B

  1. <HTML>
  2. <HEAD>
  3. <TITLE>Metabase lint checking test page</TITLE>
  4. </HEAD>
  5. <BODY>
  6. <H1>Checking for metabase lint:</H1>
  7. <%
  8. ' Carrage Return + Line Feed pair
  9. CRLF = CHR(13) + CHR(10)
  10. ' Create the MetaUtil object
  11. Set objMetaUtil = Server.CreateObject("MSWC.MetaUtil.1")
  12. ' Check the local metabase
  13. Set objSchemaErrors = objMetaUtil.CheckSchema("LM")
  14. ' Print happy message if there were no errors
  15. If objSchemaErrors.Count = 0 Then
  16. Response.Write("This metabase does not reference any non-existent files or directories!<br>" & CRLF)
  17. End If
  18. ' Print out errors
  19. For Each objSchemaError In objSchemaErrors
  20. ' Ensure that all errors are lint, and not true schema errors
  21. If objSchemaError.Id = 1400 Then
  22. Response.Write("Metabase key " & objSchemaError.Key & ": ")
  23. Response.Write(objSchemaError.Description & "<br>" & CRLF)
  24. Response.Write("<br>" & CRLF)
  25. End If
  26. Next
  27. %>
  28. </BODY>
  29. </HTML>