Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the @title batch script command do?

I see it a few times in my batch script, however I'm not certain what it actually does. The two occurrences of it are below an @echo (which prints out the text following it to the console) and are exact duplicates of the text that is printed with @echo.

like image 638
Thomas Owens Avatar asked Sep 29 '09 17:09

Thomas Owens


2 Answers

It sets the title of the current command window title bar.

If you run the following script as a batch file, you will see an example:

@title = "My Title"
pause
like image 103
D'Arcy Rittich Avatar answered Sep 30 '22 20:09

D'Arcy Rittich


Not surprisingly, it sets the title of the command prompt window the batch is running in. The leading @ keeps the line from being echo'd to the prompt.

like image 33
Pesto Avatar answered Sep 30 '22 18:09

Pesto