|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi everyone..... HELP!
I am trying to find out how to access the windows registry so that I can alter some of the keys.... To explain, I am trying to be able to read, display and then write new values to existing registry keys using ASP pages on an IIS server ( the keys to access are on that server). I can't seem to find anything which clearly explains how to access the individual keys, view and set them. Any helps would be much appriecated thanks |
|
#2
|
|||
|
|||
|
<%
Dim WSHShell Dim TAS Dim serverx Dim TASH Dim TASP Dim TASHost Dim TASPort Set WSHShell = Server.CreateObject("WScript.Shell") TahoeAS= "HKEY_LOCAL_MACHINE\Sofware\ITC\Servers\" serverx = Request.QueryString("ServerListSelect") TASH = TAS + serverx + "\Host" TASHost=WSHShell.RegRead (TASH) TASP = TAS + serverx + "\Port" TASPort=WSHShell.RegRead (TASP) %> Note: this is very insecure and it'd be much wiser to not create shell scripts when possible. |
|
#3
|
|||
|
|||
|
Hi unatratnag
You are a superstar!!!!!!!!!, thanks very much for this, I was able to edit it to point to the key I needed in about 2 seconds... works brilliantly. thanks again!!!!!!!! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Accessing the windows registry using ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|