Set Windows command-line terminal title in Python

前端 未结 9 1964
攒了一身酷
攒了一身酷 2020-12-01 00:52

I\'m running several instances of a certain Python script on a Windows machine, each from a different directory and using a separate shell windows. Unfortunately Windows giv

9条回答
  •  爱一瞬间的悲伤
    2020-12-01 01:29

    I am not aware of a way to change the cmd window title from within the script.

    However, you can set the title when launching the script if you use the start command.

提交回复
热议问题