views:

190

answers:

1

Hey all,

I need to use VBScript and loop through a set of registry string value names located within a specific key such as: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" and delete all the string values except for ones that I specifiy.

I was able to successfully delete a specific string value using DeleteValue and specifying the name of the string value, but I need to loop through each string value, get its name, check it and delete it if, for example, strValueName != "ccApp"

Thanks in advance,

Tomek

+1  A: 

Here's a solution that iterates through the key and outputs info to a file:

http://www.tech-archive.net/Archive/Scripting/microsoft.public.scripting.vbscript/2004-03/0353.html

davek