Changing a batch file when its running

后端 未结 6 687
北荒
北荒 2020-12-01 05:22

I am running a long running batch file. I now realize that I have to add some more commands at the end of the batch file (no changes to exisiting content, just some extra co

6条回答
  •  無奈伤痛
    2020-12-01 06:03

    The command interpreter remembers the line position byte offset it's at in the batch file. You will be fine as long as you modify the batch file after the current executing line position byte offset at the end of the most recently parsed line of code.

    If you modify it before then it will start doing strange things (repeating commands etc..).

提交回复
热议问题