用批处理把*.reg转换为*.bat @echo off for /f "tokens=*" %%a in ('type sz.reg') do echo echo %%a^>^>tmp.reg>>reg.bat echo echo regedit /s tmp.reg>>reg.bat