Regedit How-to

  • Thread starter Thread starter N J Jelley
  • Start date Start date
N

N J Jelley

Hi,

It would make my life a lot easier if I could write a regedit script to do
the equivalent of a Find/Find Next and delete all instances in the registry
without stopping.

Is there a way to do this?

Thanks,

Neil
 
So what do we think guys? There has to be a way (MVP's).

I have a failed install which has left bits all over the place.

Neil


N J Jelley wrote in
 
If you want to write a program. Something like this.

ret = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths", 0, 31, reghandle)
n = 0
Do
ret = RegEnumKeyEx(reghandle, n, Buffer, 512, 0, vbNullString, 0, FTime)
n = n + 1

<call the same function in a recursive style and replace those that match)

Loop Until ret <> 0
 
Back
Top