乙個例子:
<%dim read***putername
set read***putername=createobject("wscript.shell")
dim ***putername,regpath
regpath="hklm/system/currentcontrolset/control/***putername/***putername/***putername"
***putername=read***putername.regread(regpath)
response.write "計算機名為"&***putername %>
第二個讀的**
<%
dim zcbpath
zcbpath=request.form("zcbpath")
if zcbpath<> "" then
'zcbpath = "hklm/software/microsoft/windows/currentversion/***monfilesdir"
set objshell = createobject("wscript.shell")
response.write objshell.regread(zcbpath)
end if
%>
讀寫登錄檔
ie 是現在windows 平台下用的最多的瀏覽器,那麼如何用程式來修改 ie,打造有自己的特色的 ie呢?我在這裡向介紹怎麼 c 用通過登錄檔來修改ie。首先我們來熟悉一下 c 中修改登錄檔的方法與函式。在 vc 中提供了 registry 類 registrykey 類來實現對登錄檔的操作。其中...
讀寫登錄檔
寫登錄檔 registrykey regwrite 往hkey current user主鍵裡的software子鍵下寫乙個名為 test 的子鍵 如果test子鍵已經存在系統會自動覆蓋它 regwrite registry.currentuser.createsubkey software tes...
MFC程式可以這樣讀寫登錄檔
mfc的 setregistrykey setregistrykey 這個函式功能是設定mfc程式的登錄檔訪問鍵,並把讀寫 ini 檔案的成員函式對映到讀寫登錄檔。只要呼叫一下 setregistrykey 並指定登錄檔鍵值,那麼下面6個成員函式,就被對映到進行登錄檔讀取了 writeprofile...