用批处理文件在注册表中添加开机启动项

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v myauto /t REG_SZ /d C:\1.bat /f

/v 新增的键名    

/t REG_SZ   新增的键值类型

/d 新增的键值

/f  强制改写现有表项不提示

猜你喜欢

转载自blog.csdn.net/qdslg/article/details/81334666