网络编程
位置:首页>> 网络编程>> Asp编程>> asp如何读取注册表的信息?

asp如何读取注册表的信息?

 来源:asp之家 发布时间:2009-11-19 21:18:00 

标签:WScript.Shell,注册表,asp

asp代码 如下:

读取注册表信息使用了对象WScript.Shell

<%
Dim strPath 
strPath = "HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\COMMONFILESDIR"
Set objShell = CreateObject("WScript.Shell")
Response.Write "<b>Registry Value(Common files dir):</b>  " & objShell.RegRead(strPath)
%>


 

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com