一个批处理,把要作为启动项的程序拖进去回车就可以方便的实现开机启动。
以下是我的系统的开机启动文件夹, 各位同学如果有兴趣使用的话可能需要修改 dstDir这一项,修改为你自己的系统的开机启动目录。
@echo off
echo ###EasyStart 1.0, Coding by rydiy!###
set dstDir="C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
set first=%1
if "%first%" == "" (goto a) else (goto b)
:a
echo.
set /p var=#请拖入启动项:
copy "%var%" %dstDir% > nul
echo #添加完成
set /p i="#继续添加? [y/n]"
if "%i%"=="n" (goto end)
goto a
:b
copy "%1" %dstDir%
exit
:end
echo #######谢谢使用!########
sleep 2
exit
只为更简单! --Rydiy