cd.>"%cd%\run.bat"
echo %~d0 >> run.bat
echo cd %cd% >> run.bat
echo SheQu.exe >> run.bat
echo echo ok >> run.bat
echo %~d0 >> run.bat
echo cd %cd% >> run.bat
echo SheQu.exe >> run.bat
echo echo ok >> run.bat
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Run" /v "SheQu" /t REG_SZ /d "%cd%\run.bat"
说明: 将上述内容保存到一个bat文件中: autorun.bat
该bat自动生成一个run.bat,并将该bat注册到开机自动启动中: msconfig ->启动
需要手工执行autorun.bat后,开机自动启动有效。