my new exe information

Hexo Helper – Quick Guide
Hexo 助手 – 快速指南


ENGLISH

What it is
A tiny Windows console tool that bundles common Hexo commands into a numbered menu.

How to use

  1. Compile:
    MSVC: cl /EHsc hexo_helper.cpp
    MinGW: g++ -o hexo_helper hexo_helper.cpp
  2. Place the EXE anywhere and run it.
  3. Follow the on-screen menu:
    1 – hexo g
    2 – hexo d
    3 – hexo g, wait 6 s, then hexo d
    6 – create a new post and open it in Notepad++
    0 – exit

Requirements

  • Windows
  • Node.js + Hexo CLI installed and added to PATH
  • Notepad++ at the fixed path:
    D:\7zip\a.minitools\notepadPP\Notepad++\notepad++.exe
    (change the source code if your path differs)

Directory layout (hard-coded)

  • Work folder: D:\ProgramData\git\blogs\source\_posts
    All Hexo commands and file operations happen here.

Build & Run
No extra DLLs needed; just compile and double-click.


中文

这是什么
一个 Windows 下的控制台小工具,把常用 Hexo 命令做成数字菜单,一键完成。

使用方法

  1. 编译:
    MSVC: cl /EHsc hexo_helper.cpp
    MinGW: g++ -o hexo_helper hexo_helper.cpp
  2. 把生成的 EXE 放到任意位置运行。
  3. 按屏幕菜单操作:
    1 – 执行 hexo g
    2 – 执行 hexo d
    3 – 先 hexo g,等待 6 秒后自动 hexo d
    6 – 输入文章标题,自动 hexo new 并用 Notepad++ 打开
    0 – 退出

运行需求

  • Windows 系统
  • 已安装 Node.js 并把 Hexo CLI 加到 PATH
  • Notepad++ 路径(已写死):
    D:\7zip\a.minitools\notepadPP\Notepad++\notepad++.exe
    若路径不同请自行修改源码重新编译。

工作目录(硬编码)

  • D:\ProgramData\git\blogs\source\_posts
    所有 Hexo 命令和文件操作均在此目录完成。

编译与运行
无需额外 DLL,编译后直接双击即可使用。