Windows hexo博客开机自动启动设置

创建.bat文件,并输入下面的命令行(hexo路径实际路径填写)

@ECHO OFF
cd /d "E:hexoblog"
start hexo server
cd /d "E:hexopmp"
start hexo server
EXIT

然后把文件放到下面的目录下面

Windows 10 系统:

C:\ProgramData\Microsoft\WindowsStart\Menu\Programs\Startup

Windows 11系统:

C:\Users\Cheng\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

其他方式获取Windows 的开机启动目录

  • 键盘win+R
  • 然后输入shell:startup;就会弹出Windows 系统的开机启动目录;

PC 重启查看效果



微信扫描下方的二维码阅读本文

© 2025 SaiitaのBlog by 程厚锋

Licensed under CC BY 4.0

CC BY

相关推荐

解决hexo g报错

报错内容 解决办法 微信扫描下方的二维码阅读本文 © 2025 SaiitaのBlog by 程厚锋 Lice ...

暂无评论

Optimized by WPJAM Basic