using Registry functions on valuenames with backslashes? 
Author Message
 using Registry functions on valuenames with backslashes?

Hi,

can anyone help me with this problem:

I would like to Read some valuenames from the registry and delete them if
their content (data) matches a certain string.

However, when using the .RegRead and .RegDelete methods, there's no way to
make a distinction between keys and valuenames that contain backslashes.

E.g. It is impossible to read the data of (or delete) a valuename called
"Configuration_\Programs\Maintenance" in the key  HKCU\Test because WSH sees
"Configuration_\Programs" as a part of the key instead of the valuename.

Is this a weakness of WSH or is there a workaround?

Thanks,
Robert van Leiden



Sun, 03 Nov 2002 03:00:00 GMT  
 using Registry functions on valuenames with backslashes?
RegObj.dll supports access to value names that contain backslashes.  It's free and can be found at

Win32 Scripting [Clarence Washington]
http://cwashington.netreach.net
http://cwashington.netreach.net/script_repository/repository.asp
http://cwashington.netreach.net/script_repository/query.asp

here ==> http://cwashington.netreach.net/main_site/downloads

http://cwashington.netreach.net/script_repository/faqs.asp?topic=wmifaq
http://cwashington.netreach.net/script_repository/faqs.asp?topic=adsifaq

--
Michael Harris
MVP Scripting



Hi,

can anyone help me with this problem:

I would like to Read some valuenames from the registry and delete them if
their content (data) matches a certain string.

However, when using the .RegRead and .RegDelete methods, there's no way to
make a distinction between keys and valuenames that contain backslashes.

E.g. It is impossible to read the data of (or delete) a valuename called
"Configuration_\Programs\Maintenance" in the key  HKCU\Test because WSH sees
"Configuration_\Programs" as a part of the key instead of the valuename.

Is this a weakness of WSH or is there a workaround?

Thanks,
Robert van Leiden



Sun, 03 Nov 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Registry - Create Valuename starting with \ ???

2. Reading registry values containing a backslash (\)

3. Using Backslash with RegWrite

4. Calling a sub or function using a variable through another sub or function

5. Found a Microsoft control for remote registry functions!!!

6. Remote Registry Function

7. Found a Microsoft control for remote registry functions!!!

8. Found a Microsoft control for remote registry functions!!!

9. Stop backslash behaving as the escape character

10. Backslash disapears

11. getting to read the backslash

12. Backslash problems - help!

 

 
Powered by phpBB® Forum Software