CODE: [Copy to clipboard]reg add "HKLM\Software\aaa" if "%errorlevel%"=="0" echo 写入成功 if "%errorlevel%"=="1" echo 写入失败