Extreme necropost here! Just thought I'd add a small addition to the batch program to stop it failing when your directory names have spaces in them.
FOR /R %%G IN (*.dll) DO regsvr32 /s "%%G"
Putting %%G in "" ensures paths with spaces (such as "Program Files") aren't causing errors.
Edited, Aug 7th 2011 1:03pm by Drusenija