|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
Premium Member
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. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
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 |