0%

Win10 设置开机启动项

# 查看当前用户的home目录 # 在Linux中当打开终端的时候一般会进入用的home目录,windows中的cmd也是如此. windows中`%UserProfile%`这个变量保存了当前用户的主目录
1
echo %UserProfile%
1
2
C:\Users\lan>echo %UserProfile%
C:\Users\lan
# 用户开机启动文件夹路径 # 用户的开机启动目录格式如下:
1
用户home目录路径\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
# 在用户的开机启动文件夹放置程序 # 打开cmd,然后输入如下命令,即可打开当前用户的**开机启动文件夹**:
1
explorer.exe %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
然后将要运行的程序或程序的快捷方式复制到这个目录下,这样当该用户登陆系统时,就会启动这个程序. 例如,我现在想在开机时启动任务管理器(C:\Windows\System32\Taskmgr.exe),则创建任务管理器的一个快捷方式,然后粘贴到开机启动文件夹中即可: ![图片](https://raw.githubusercontent.com/lanlan2017/images/master/Windows/Setting/Startup/0.png)
Windows/Setting/Startup/

参考资料

https://blog.csdn.net/qq459080123/article/details/81392060