start.bat 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. @echo off
  2. REM ***************************************************************************
  3. REM @Contact : liuyuqi.gov@msn.cn
  4. REM @Time : 2024/04/26 16:02:11
  5. REM @Version : 1.0
  6. REM @License : (C)Copyright 2019 liuyuqi.
  7. REM @Desc : 调用 search_domain.exe 查询域名,本脚本提示用户输入相应的参数启动程序
  8. REM %1 - ext_name
  9. REM %2 - characters replaced
  10. REM %3 - new characters
  11. REM ***************************************************************************
  12. REM 1. 打印help
  13. :help
  14. echo 1. 生成域名
  15. echo 2. 检索域名
  16. set /p input=请选择command:
  17. if "%input%"=="1" goto make_domain
  18. if "%input%"=="2" goto search_domain
  19. goto help
  20. REM 2. 生成域名
  21. :make_domain
  22. echo.
  23. echo 1. 中文双拼
  24. echo 2. 英文单词
  25. set /p lang_tmp=请选择lang:
  26. if "%lang_tmp%"=="1" set lang=zh
  27. if "%lang_tmp%"=="2" set lang=en
  28. echo.
  29. set /p keyword=请输入关键词keyword,多个逗号分隔:
  30. echo.
  31. echo 1. prefix
  32. echo 2. suffix
  33. set /p position_tmp=请选择position:
  34. if "%position_tmp%"=="1" set position=prefix
  35. if "%position_tmp%"=="2" set position=suffix
  36. echo.
  37. set /p domain=请输入域名后缀,多个逗号分隔:
  38. echo.
  39. echo 生成域名中...
  40. search_domain.exe generate --lang %lang% --keyword %keyword% --position %position% --domain %domain%
  41. echo finish...
  42. pause
  43. goto help
  44. REM 3. 检索域名
  45. :search_domain
  46. echo.
  47. echo 检索域名中...
  48. search_domain.exe search
  49. echo finish...
  50. pause