command line Create project Document directory structure

Source: Internet
Author: User

command line Create project Document directory structure

[Email protected] January 21, 2016 11:10:59

Documentation helps to reduce memory pressure and facilitates seamless sharing in the internet age
It is recommended to open with Cmd markdown, the DOS script has syntax highlighting.

Origin

When all the project documents were collated, it was found that the project structure was not in harmony with the content:

    1. Pure document projects, the use of Business Project management directory, many catalogs are empty;
    2. Pure code projects, the use of Business Project Management directory, the document is more empty;
    3. The complicated project catalogue will be intimidating and not conducive to documentation;
    4. Redundant catalogs that make it difficult to find the documentation you need quickly
    5. A better way is to use 数据库 management documents and build them 全文索引 . This ensures that the latest document has only one copy, and that the logical lines of each document are complete. Documents such as 合同-启动-计划-实施-控制-收尾过程组 documents, 需求-概要设计-详细设计-编码-测试-部署-试运行-用户手册-验收-维护 2 lines of documentation are complete.
Practice

With the MSDOS command line, the MSDOS editing is simple, and the combination of Windows system is better;

Source

The source is stored in F:\mytool\prjMD.bat

  
 
  1. @echo off
  2. echo 创建项目文档结构
  3. echo by [email protected].com 2016年1月21日
  4. echo 用法: prjmd 项目根目录 文件夹结构模式
  5. echo.
  6. echo 模式1:资料、方案、结果、说明,适用于纯实验性质的项目
  7. echo.
  8. echo 模式2:资料、方案、源码、部署、用户手册、结果()、说明,
  9. echo 用于需要简单编程的实验项目
  10. echo.
  11. echo 模式3:资料、文档、方案、环境搭建、源码(测试)、部署、用户手册、结果()、说明,
  12. echo 用于需要框架编程的实验项目
  13. echo.
  14. echo.
  15. echo 模式4:资料、合同、启动、计划、实施、控制、收尾、说明
  16. echo 用于正式的计算机商业项目。需求、设计、编码、测试、部署、用户手册、运维、
  17. echo 沟通(会议纪要、汇报、通知、周报日报),如何嵌入
  18. echo.
  19. echo.
  20. rem 新建项目工程目录
  21. if /i not ""%1""=="""" (md ""%1""
  22. set oldcd=%cd%
  23. cd /d ""%1""
  24. )
  25. if /i "%2"=="-1" ( goto simplemode
  26. ) /span>else if / i "%2" == "2" ( goto Simplecodemode
  27. ) /span>else if / i "%2" == "3" ( goto Frameworkmode
  28. ) /span>else if / i "%2" == "4" ( goto Businessmode
  29. ) else if /i "%2"=="-5" ( goto end
  30. ) else goto end
  31. :simplemode
  32. md "01 资料" "02 方案" "03 结果"
  33. goto tree
  34. :simplecodemode
  35. md "01 资料" "02 方案" "03 源码" "04 部署" "05 用户手册" "06 结果"\"01 " "07 说明"
  36. goto tree
  37. :frameworkmode
  38. md "01 资料"
  39. md "02 文档"
  40. md "03 方案"
  41. md "04 环境搭建"
  42. md "05 源码"\"01 用例图"
  43. md "05 源码"\"02 结构图"
  44. md "05 源码"\"03 流程图"
  45. md "05 源码"\"04 依赖库和环境"
  46. md "05 源码"\"05 源码"
  47. md "05 源码"\"06 测试"
  48. md "06 部署"
  49. md "07 用户手册"
  50. md "08 结果"\"01 "
  51. md "09 说明"
  52. goto tree
  53. :businessmode
  54. md "00 资料"
  55. md "01 合同"
  56. md "02 启动"
  57. md "03 计划"
  58. md "04 实施"
  59. md "05 控制"
  60. md "06 收尾"
  61. md "07 说明"
  62. md "A0 需求"
  63. md "A1 设计"
  64. md "A2 编码"
  65. md "A3 测试"
  66. md "A4 部署"
  67. md "A5 用户手册"
  68. md "A6 运维"
  69. md "+00 验收文档"
  70. md "+01 沟通"\"01 会议纪要"
  71. md "+01 沟通"\"02 汇报"
  72. md "+01 沟通"\"03 周报"
  73. md "+01 沟通"\"04 通知"
  74. goto tree
  75. :tree
  76. tree .
  77. echo. > ReadMe.md
  78. :end
  79. cd /d %oldcd%
Description

The follow-up can be augmented according to actual needs.



From for notes (Wiz)

Command line to create the project document directory structure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.