Batch files : How to leave the console window open

后端 未结 9 1124
星月不相逢
星月不相逢 2020-12-04 16:16

I have two batch files, one of them executes another, i.e.

  1. \"My Batch File\" > 2. \"Some Other Batch File\"

I\'ve created a shortcut of the firs

相关标签:
9条回答
  • 2020-12-04 16:40

    I just press enter and type Pause and it works fine

    0 讨论(0)
  • 2020-12-04 16:42

    For leaving the console window open you only have to add to the last command line in the batch file:

    ' & pause'
    
    0 讨论(0)
  • 2020-12-04 16:55

    I just written last line as Pause it worked fine with both .bat and .cmd. It will display message also as 'Press any key to continue'.

    0 讨论(0)
提交回复
热议问题