Original ASP can read and write registry

xiaoxiao2021-03-05  24

one example:

<% Dim Readcomputername

Set readcomputername = creteObject ("wscript.shell")

DIM Computername, RegPath

RegPath = "HKLM / System / CurrentControlSet / Control / Computername / Computername / Computername"

Computername = readcomputername.regread (RegPath)

Response.write "Computer Name" & ComputerName%>

Second read code

<%

DIM ZCBPATH

ZCBPATH = Request.form ("ZCBPATH")

IF ZCBPATH <> "" "" "

'zcbpath = "HKLM / Software / Microsoft / Windows / CurrentVersion / CommonFilesDir"

Set objshell = creteObject ("wscript.shell")

Response.write objshell.regread (ZCBPATH)

END IF

%>

Registry key value

转载请注明原文地址:https://www.9cbs.com/read-36468.html

New Post(0)