how to do “press enter to exit” in batch

后端 未结 7 1193
眼角桃花
眼角桃花 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:52

    My guess is that rake is a batch program. When you invoke it without call, then control doesn't return to your build.bat. Try:

    @echo off
    cls
    CALL rake
    pause
    

提交回复
热议问题