New to the world of VBscript, so I thought I'd start with something simple!!. I just require an HTML/ASP page to read a registry value on the local PC and to create an unique URL from it.
The Code I have below, does the read bit fine - EXCEPT it reads the server's registry!!
Any assistance would be much appreciated....
----------------------------------------------
<%
Dim WSHShell, RegKey, macid, macbit, myURL
Set WSHShell = CreateObject("WScript.Shell"
RegKey = "HKEY_LOCAL_MACHINE\SOFTWARE\SYSTEMHOUND\"
macid = WSHShell.RegRead(RegKey & "machine_id"
macid = replace(replace(macid,"{","","}",""
macbit = right(macid,2)
myURL = " & macbit & "/" & macid & ".htm"
%>
The Code I have below, does the read bit fine - EXCEPT it reads the server's registry!!
Any assistance would be much appreciated....
----------------------------------------------
<%
Dim WSHShell, RegKey, macid, macbit, myURL
Set WSHShell = CreateObject("WScript.Shell"
RegKey = "HKEY_LOCAL_MACHINE\SOFTWARE\SYSTEMHOUND\"
macid = WSHShell.RegRead(RegKey & "machine_id"
macid = replace(replace(macid,"{","","}",""
macbit = right(macid,2)
myURL = " & macbit & "/" & macid & ".htm"
%>