How to prevent batch window from closing when error occurs?

前端 未结 4 2111
予麋鹿
予麋鹿 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:35

    Press start and type cmd and press enter, you will launch a command prompt.

    Just drag and drop what you need to run (your python script, .exe ...) into the cmd windows, and press enter.

    (You might some time to run the cmd as admin: find the cmd in the start menu, right-click on it, choose run as admin).

提交回复
热议问题