Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 09-15-2006, 10:32 AM   #1
Member (10 bit)
Premium Member
 
legend_018's Avatar
 
Join Date: Jul 2006
Posts: 559
help spaces in registry value

This searches for the value of DS Server. If I set DS Server to DSServer with no spaces in the registry this script works - of course I have to change it so it has no spaces.
However, I it to work with spaces. It keeps saying error on line 2. I tried ' and " quotes around DS Server. Help?
>>
Option Explicit
Dim WSHShell, RegKey, DS Server
Set WSHShell = CreateObject("WScript.Shell")
RegKey = "HKLM\SOFTWARE\Microsoft\Exchange\Exchange Provider\"
DS Server = WSHShell.RegRead(RegKey & "DS Server")
WScript.echo "Value is: " & DS Server


MODIFICATION:
nevermind
Option Explicit
Dim WSHShell, RegKey, DSServer
Set WSHShell = CreateObject("WScript.Shell")
RegKey = "HKLM\SOFTWARE\Microsoft\Exchange\Exchange Provider\"
DSServer = WSHShell.RegRead(RegKey & "DS Server")
WScript.echo "Value is: " & DSServer

Last edited by legend_018; 09-15-2006 at 10:53 AM.
legend_018 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I stealth ports? jsun Networking & Online Security 9 08-21-2005 03:59 PM
Can't login with Firefox RJS2 Internet, Web Applications, & The Cloud 16 03-25-2005 03:49 PM
Anyone Using Registry First Aid and/or Registry Compactor Harry Windows Legacy Support (XP and earlier) 0 06-07-2004 03:14 PM
Heres some Window Secrets Citron Windows Tips, Tricks, and Tweaks 22 01-12-2003 07:07 AM
How To Back Up And Restore Your Registry In Windows 98 muckshifter Windows Tips, Tricks, and Tweaks 3 07-26-2001 09:46 PM


All times are GMT -5. The time now is 05:13 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2