?
Solved

VBScript shell.regread fails for entries with "\" in name

Posted on 2006-03-29
3
Medium Priority
?
740 Views
Last Modified: 2008-01-09
How can I read a registry key which has a “\” character in the name?

Regread always fails with "invalid root in registry key” as it thinks the \ is denoting another subkey.

 
0
Comment
Question by:JohnCarlMorgan
  • 2
3 Comments
 
LVL 4

Author Comment

by:JohnCarlMorgan
ID: 16328072
When I say key it's actually a REG_SZ entry I'm trying to read, not a key.
0
 
LVL 14

Accepted Solution

by:
nayernaguib earned 200 total points
ID: 16328666
This is a limitation of the RegRead method. You can read registry values using WMI. Take a look at the following pages for samples on reading registry values of different types:

  http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/registry/
  http://www.serverwatch.com/tutorials/article.php/1476831

_______________

  Nayer Naguib
0
 
LVL 4

Author Comment

by:JohnCarlMorgan
ID: 16328865
Thanks mate!  Exactly what I wanted.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question