Batch setting a title at the top

笑着哭i 提交于 2020-01-16 00:57:25

问题


How would I set a title to a batch file so it will say My Batch file at the top. thanks if any one can help. I have looked on google but I didn't find any thing of any use.


回答1:


Try using this:

title "My Batch File"

Let me know if that's what you want.




回答2:


If this is a normal batch file then either use:

title "My Batch File" 

to see the text appear in the window title bar

or use

@echo off
echo My Batch File 
@echo on

to have it appear inside the CMD prompt window.




回答3:


Try this

@echo off
title Batch File


来源:https://stackoverflow.com/questions/22607485/batch-setting-a-title-at-the-top

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