[英]How to change the Title of the command prompt window
How can I change the title of the command prompt window every time I execute a dos-based program by double clicking it, in c language. 每次我以C语言双击基于Dos的程序时,如何更改命令提示符窗口的标题。 Should I use the Windows API?
我应该使用Windows API吗?
尝试SetConsoleTitle 。
title
可以设置:
title Windows Title (quotes unneeded)
you can do 你可以做
%comspec% /c start "testtest" %comspec% %comspec%/ c启动“测试”%comspec%
at application launcher of Windows+R 在Windows + R的应用启动器上
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.