简体   繁体   中英

How to change window title of console application Visual Studio

In Visual Studio i have a console application, however the title always shows as [I think this is debugging specific, question still stands though]:

file://C:/Users......Service.exe

We spin up about 12 differently named processes locally and it's a huge pain to find a single one because the paths are so long they only tend to show the first letter or so of the actual process. We have resorted to hovering over them on the taskbar to see the full path. So my question is how do we go from the above (and example below) to something like:

Service

Example -

示例

如果您使用 C#,请使用 Console.Title 和诸如 trim 之类的字符串方法。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM