1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
   | echo off
  D: 
  cd D:\hexo :begin echo  --------------------------- echo 丨       Hexo写作助手      丨 echo 丨    		           丨 echo 丨      【1】创建文章      丨 echo 丨      【2】部署发布      丨 echo 丨      【3】本地预览      丨 echo 丨      【4】结束程序      丨 echo 丨    		           丨 echo 丨         By 大橙子       丨 echo  --------------------------- set input= set /p input=请输入字符串: if %input% equ 1 (goto case1) else if %input% equ 2 (goto case2) else if %input% equ 3 (goto case3) else if %input% equ 4 (goto case4) else (goto default) goto begin
  :case1 cls set title= set /p title=请输入文章名: hexo new %title% goto begin
  :case2 cls hexo g&&hexo d goto begin
  :case3 cls hexo clean&&hexo g&&hexo s goto begin
  :case4 exit
  :default cls echo 输入的参数错误 goto begin
   |