@echo off set "APP_NAME=OfficeHelper" set "APP_EXE=office_helper.exe" set "SCRIPT_DIR=%~dp0" set "FULL_PATH=%SCRIPT_DIR%%APP_EXE%" rem 添加开机启动项到当前用户(免管理员) reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" /v "%APP_NAME%" /d "\"%FULL_PATH%\"" /f >nul 2>&1