|
|
|
7i24.Com不停为您服务
如何在 ASP 中读取注册表的信息
2001:8:17
如何在 ASP 中读取注册表的信息
通过 Windows Scripting object 的 Regread 方法,可以从注册表中读取信息。
下面的例子演示了如何得到 common files 的路径:
<%
Dim strPath
strPath = "HKLMSOFTWAREMICROSOFTWINDOWSCURRENTVERSIONCOMMONFILESDIR"
Set objShell = CreateObject("WScript.Shell")
Response.Write "<b>Registry Value(Common files dir):</b> " & objShell.RegRead(strPath)
%>
键值要以 ' ' 结尾。
|
|
|