ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 8th, 2003, 02:08 PM
jammie_dodger jammie_dodger is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 2 jammie_dodger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Accessing the windows registry using ASP

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

Reply With Quote
  #2  
Old October 12th, 2003, 04:19 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
<%
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.

Reply With Quote
  #3  
Old October 13th, 2003, 09:57 AM
jammie_dodger jammie_dodger is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 2 jammie_dodger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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!!!!!!!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Accessing the windows registry using ASP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT