tried that and get the same error On 13/12/05, Greg Moseley <greg@xxxxxxxxxxxxxx> wrote: > > To get a double quote in VBS you would use """" (4 of them) to return a > single " or you can use chr(34) which looks a lot tidier in a string > > You could try "hkcu\software\microsoft\windowsNT\CurrentVersion\Devices\" > & chr(92) & chr(92) & "<printserver>\<printqueue>" > > Cheers > Greg > > ------------------------------ > *From:* thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] *On > Behalf Of *Matthew Shrewsbury > *Sent:* 13 December 2005 18:16 > *To:* thin@xxxxxxxxxxxxx > *Subject:* [THIN] Re: One for all the Script jockey's out there > > > > Normally in javascript we use twice as many back slashes as we need. For > example \\server\share would be in a javascript \\\\server\\share > > > > I write all my scripts in Java script as I find it easer and slightly more > powerful then VB script. > > > > Don't know if that helps or not… > > > > *Matthew Shrewsbury**, *MCSE+Internet MCSE 2000 CCA Server+ > > Senior Network Administrator > > -----Original Message----- > *From:* thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] *On > Behalf Of *Tom Howarth > *Sent:* Tuesday, December 13, 2005 12:20 PM > *To:* thin@xxxxxxxxxxxxx > *Subject:* [THIN] One for all the Script jockey's out there > > > > I need to read the following regkey > > hkcu\software\microsoft\windowsNT\CurrentVersion\Devices\\\<printserver>\<printqueue> > > > I receive the following error > > Invalid root in Registry Key > "Hkey_Current_User\Software\Microsoft\WindowsNT\CurrentVersion\Devices\\\<printserver>\<printqueue> > > > Code: 80070057 > > source Wshshell.RegRead > > I'm know that the "\\" are to blame, as the script works > when the value does not have the "\\" in it. > > > Thanks in advance > > > > -- > Tom at home > -- Tom at home