Is it possible to set the window title of my console app without setting Console.Title?

我是研究僧i 提交于 2021-01-29 08:08:00

问题


When my console app first runs, I execute Console.Title = "whatever" to change the window's title. What bugs me is that there is that split second where the console window's title is the path to the EXE itself. I'd like to think that there's a way to set the title so that it's stored in the application settings itself so that I don't have to set it with code.


回答1:


Perhaps run it as with a batch file called "my_console_app.bat"?

start "My display name" my_console_app.exe


来源:https://stackoverflow.com/questions/17343001/is-it-possible-to-set-the-window-title-of-my-console-app-without-setting-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!