%@ Language=VBScript %> <%Option Explicit%>
This page will test the server to determine whether or not it supports Windows Script Components. These are COM components written in a scripting language such as Javascript or VBScript, and they do not need to be explicitly registered with the operating system the way DLLs and regular COM components do.
If the following paragraph says Script Component Success! then this web server can use script components. If it shows an error of any description, then it cannot use script components.
<% Dim testcontrol Set testcontrol = GetObject ("script:" & Server.MapPath ("ASPTest.WSC")) Response.Write (testcontrol.Test) %>If the following paragraph says ASPNetScript Component Success! then this web server can use ASPNetScript to fetch URLs. If it shows an error of any description, then it cannot use this particular script component.
<%=testcontrol.TestNetScript%>More information on script components can be found at http://msdn.microsoft.com/scripting/.
This test was downloaded from ASPForums.com.