Nato51
Nato51

Reputation: 175

Batch setting a title at the top

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.

Upvotes: 2

Views: 1011

Answers (3)

Nagaraj S
Nagaraj S

Reputation: 13484

Try this

@echo off
title Batch File

Upvotes: 2

Jacques
Jacques

Reputation: 7135

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.

Upvotes: 3

09stephenb
09stephenb

Reputation: 9816

Try using this:

title "My Batch File"

Let me know if that's what you want.

Upvotes: 7

Related Questions