|
|
|
7i24.Com不停为您服务
通过 Windows Scripting object 的 Regread 方法,可以从注册表中读取信息。
下面的例子演示了如何得到 common files 的路径:
<%
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)%>
键值要以 '\' 结尾
|
|
|