Important alert: (current site time 7/15/2013 10:17:20 PM EDT)
 

VB icon

Accessing System Registry like Host, Port, etc

Email
Submitted on: 6/19/2001 3:23:06 PM
By: Mateen Shaikh  
Level: Beginner
User Rating: By 3 Users
Compatibility: ASP (Active Server Pages)
Views: 25359
 
     Accessing System Registry like Host, Port, etc
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
'**************************************
' Name: Accessing System Registry like Host, Port, etc
' Description:Accessing System Registry like Host, Port, etc
' By: Mateen Shaikh
'
'This code is copyrighted and has' limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=6718&lngWId=4'for details.'**************************************

<%
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)
%>


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
1/8/2002 8:22:19 PMSutan

In my final Project, i made a Web Site.
The title is 'Remote Printing Client Server' using VBScript/ASP and DCOM.
So, in my final Project, the client Browsing to server 'example:www.sutan.com'.From Client, user upload file (*.DOC,*.RTF,*.TXT,*.XLS,*.Jpeg,*.Gif,*.PDF). From upload file, user server browse the printing Driver and the status of printing. From that, user go to print the file.
In my project, UPload is Success, but status printing and how to print is not success. I want to know about it.

Thanks
hardcom@lycos.com
(If this comment was disrespectful, please report it.)

 
3/17/2003 7:02:28 AM

Thanks. It's working fine.

Is it possible to read client system registry ?
Please let me know at bijusuma@yahoo.com
(If this comment was disrespectful, please report it.)

 
3/17/2003 7:04:03 AM

Thankx. It's working fine.
Is there any way to access client system registry ?
Please let me know.
Thank you Mateen Shaikh !


(If this comment was disrespectful, please report it.)

 
4/3/2003 9:48:32 PMWalter Staeblein

No, there is no way of reading client registry with this object, unless it is a local call, I mean, the script must not come from a website.
(If this comment was disrespectful, please report it.)

 
12/12/2004 1:23:00 AM

can i access the sytem parallel port using this code.
(If this comment was disrespectful, please report it.)

 
1/20/2005 7:37:27 AM

is there any way to read/write from/to client registry at all, off course with the users permission.
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.