I'm hoping to find a way to delete registry keys based on wildcards using a batch file rather than writing some vbscript. Does anyone have an example?
I'm forced to proceed with MS's wonderful manual removal of Office as described here:
An example of what I'm trying to remove is:
HKEY_CLASSES_ROOT\Installer\Products\*F01FEC
HKEY_CLASSES_ROOT\Installer\UpgradeCodes\*F01FEC
HKEY_CLASSES_ROOT\Installer\Win32Assemblies\*Office12*
Could reg query throw the values into a variable then possibly hit them with a for loop?
FOR %%i IN (%PATH1% %PATH2% %PATH3%) DO (
reg delete %PATH1% /f
)
Best Answer
I broke down and wrote a vbscript for the registry clean up which seems to work...