tags:

views:

194

answers:

4

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.

+15  A: 
  • @ means "don't echo this, just run it."
  • title lets you set the title of the cmd.exe window.

Try title /? from the command prompt.

jeffamaphone
+3  A: 

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
RedFilter
+1  A: 

It "specifies the title for the command prompt window" (found by running title /?).

adrianbanks
Interesting...I've never seen it actually change the title of the window before...
Thomas Owens
+9  A: 

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.

Pesto