How to prevent batch window from closing when error occurs?

前端 未结 4 2032
予麋鹿
予麋鹿 2021-02-02 05:53

I\'m trying to write batch script to create a folder if it does not already exist. Following up the online examples, below is my script.

The problem is;

4条回答
  •  不知归路
    2021-02-02 06:34

    You need to pass the /K switch to CMD, or just open a Command Window and run the batch from the command line.

提交回复
热议问题