Tomcat set Windows cmd title
This article describes how to set the title of the Windows command prompt window when starting Tomcat.
When you open multiple tomcat windows, it is difficult to distinguish which window is which project. Setting the window name can help distinguish.
Enter the bin directory of tomcat, such as T:\apache-tomcat-9.0.60-windows-x64\apache-tomcat-9.0.60\bin
, find the catalina.bat
file, and open it with a text editor.
You can see in the bottom of the description, there is a parameter called TITLE
, and the default is Tomcat
. You can modify it according to your needs. It can have spaces.
1 | rem TITLE (Optional) Specify the title of Tomcat window. The default |
Search for TITLE
in the file, and find the following section. Fill in your name after set TITLE
.
1 | :doStart |