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
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