问题
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