how to do “press enter to exit” in batch

后端 未结 7 1196
眼角桃花
眼角桃花 2021-02-06 19:59

I am using rake to build my project and I have a build.bat file similar to this:

@echo off
cls
rake

When I double click on build.bat the dos wi

7条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-06 20:36

    @echo off
    echo somethink
    echo Press enter to exit
    set /p input=
    

提交回复
热议问题