• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

batch scripting

yak8998

Member
I'm doing a batch script to clean some stuff out of the registry. I need to search in a certain key for a subkey with certain values in it. Its for symantec 9.

Ex:
HKEY_CLASSES_ROOT\Installer\Products\ has several product keys in it. I need to find one with a value referencing AntiVirus.

What is the best way to go about doing this with a batch script, if even possible? I already have a bunch of work done on a batch file, thats why I'm forging ahead with this. I can kind of get the query part to work using

FOR /F (1,1,2) %%A IN ('REG QUERY HKEY_CLASSES_ROOT\Installer\Products\ /v "Symantec AntiVirus" ') DO set prodkey=%%B

But it won't output to the var. I was planning on using reg expressions after this if needed to get the path down to where I can delete it. I _can_ use external libs and such, this is going to be deployed using AD and group policy. Thanks for the help

PS I figured this section was a better idea than the programming forum
 
Back
Top