如何在 ASP 中读取注册表的信息
作者:Darph 日期:2008-10-22
通过 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)
%>
键值要以 ' ' 结尾。
如果要是能写注册表,那不是天下大乱?
评论: 0 | 引用: 0 | 查看次数: -
发表评论
上一篇
下一篇
















文章来自:
Tags: