欢迎您访问我爱IT技术网,今天小编为你分享的编程技术是:【ASP读写注册表】,下面是详细的分享!
ASP读写注册表
一个例子:
| 以下为引用的内容: <%Dim ReadComputerName Set ReadComputerName=CreateObject("WScript.Shell") Dim ComputerName,RegPath RegPath="HKLM\System\CurrentControlSet\Control\ComputerName\ComputerName\ComputerName" ComputerName=ReadComputerName.RegRead(RegPath) response.write "计算机名为"&ComputerName %> |
| 以下为引用的内容: <% Dim zcbpath zcbpath=request.form("zcbpath") if zcbpath<> "" then 'zcbpath="HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\COMMONFILESDIR" Set objShell=CreateObject("WScript.Shell") Response.Write objShell.RegRead(zcbpath) end if %> <form action="zcb.asp" method=post> 注册表键值<input type=text name=zcbpath id=zcbpath> <input type=submit> </form> |
以上所分享的是关于ASP读写注册表,下面是编辑为你推荐的有价值的用户互动:
相关问题:读写注册表的Api有哪些呢?
答:FunctionDescriptionGetSystemRegistryQuotaRetrieves the current size of the registry and the maximum size that the registry is allowed to attain on the system.RegCloseKeyCloses a handle to the specified registry key.RegConnectRe... >>详细
相关问题:如何用 C 语言读取一个 Windows 注册表键值?
答:这个不属于标准C++的范畴,调用windows api即可 Win 95及NT的注册数据库(Registry)是系统中非常重要的组成部分。在Win32 API中有一组Reg函数来处理这些问题。其一般的读写过程如下: 1、使用RegOpenKeyEx或RegCreateKeyEx函数打开或创建一个键;... >>详细
相关问题:如何利用asp.net对注册表操作??
答:用Asp.Net来读写注册表 向注册表读取一个键值: 1RegistryKey rstryKey = Registry.LocalMachine; 2 RegistryKey rgstryKeyValues = rstryKey.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion"); 3 4 Response.Write("ProductId = " + rg... >>详细
- 评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
-
