In batch, how do I create spaces at the beginning of a input prompt string?

前端 未结 5 1962
一生所求
一生所求 2021-02-13 03:27

Let\'s say I have a batch file that has \"padding\" in it, and I want to indent the beginning of the prompt string for the user to type in. If I use spaces, it will not show up

5条回答
  •  粉色の甜心
    2021-02-13 03:53

    You need to add a dot after the echo The following example will output "Test" with three leading spaces:

    echo.   Test
    

    Same works for tabulator. The following example will output "Test" with one leading tab:

    echo.   Test
    

提交回复
热议问题