ASP sample of Registry Access component
ASP sample of Registry Access component
Rate ASP sample of Registry Access component
(3(3 Vote))
<HTML>
<HEAD>
</HEAD>
<TITLE>ASP 2.0 Demo - Registry Access Component</TITLE>
<BODY>
<H2>ASP 2.0 Demo - Registry Access Component</H2>
<HR>
The <B>Registry Access</B> component provides access to the registry on a local or remote computer.
<P>
<HR>
<P>
<%
Dim objRegAccess
Dim strIEVersion
On Error Resume Next
Set objRegAccess=Server.CreateObject("IISSample.RegistryAccess")
If IsObject(objRegAccess)=False Then
Response.Write "The Registry Access component object can not be created at this time. "
Response.Write "Either you do not have this component on the server machine or it "
Response.Write "is not installed properly."
Response.Write "You may try to fix this problem by installing IIS Resource Kit."
Else
Response.Write "The Registry Access component object is created successfully !<P>"
strIEVersion=objRegAccess.Get("HKLM\Software\Microsoft\Internet Explorer\Version Vector\IE")
Response.Write("Internet Explorer version - " + strIEVersion)
Response.Write("<P>")
If Trim(strIEVersion) <> "" Then
Response.Write("You got something useful !")
End if
End if
%>
</BODY>
</HTML>
ASP sample of Registry Access component Comments
No comments yet — be the first to post one!
Post a Comment