Batch files : How to leave the console window open

后端 未结 9 1156
星月不相逢
星月不相逢 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

    You can just put a pause command in the last line of your batch file:

    @echo off
    echo Hey, I'm just doing some work for you.
    pause
    

    Will give you something like this as output:

    Hey, I'm just doing some work for you.

    Press any key to continue ...

    Note: Using the @echo prevents to output the command before the output is printed.

提交回复
热议问题