@echo off for /r "C:\test" %%i in (*.reg) do ( echo 正在注册%%i,请稍候... regedit /s "%%i" cls ) echo 注册完成,按任意键退出... pause>nul