@echo off @for /f %%i in ('dir %1 /b') do ( @regsvr32 /s %%i @copy %%i %systemroot%\system32 ) @echo copy and reg ok.