把下面的指令复制到批处理文件,运行根据提示,自然就得到你想要的了 @echo off
title 请把你想自启动的文件往这里拖 QQ:48248199
mode con cols=55 lines=15
setlocal EnableDelayedExpansion
set /p strpath=请把你想自启动的文件往这里拖(然后回车):
cls & if not exist %strpath% echo 您操作有误,不存在此“%strpath%” 请把你想自启动的文件往这里拖 &pause>NUL &%0
for /l %%i in (-1,-1,-1000) do if "!strpath:~%%i,1!" == "\" set /a istr=%%i+1 & goto :next
:next
set name=!strpath:~%istr%,1000!
cls
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v %name% /t REG_SZ /d "%strpath%" /f
ping /n 3 127.1>NUL&%0
在批处理中写入 start gm.exe
本人有很多,希望对你有帮助