Suppress titile on CMD

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Docfxit
Posts: 130
Joined: 12 Nov 2015 12:42

Suppress titile on CMD

#1 Post by Docfxit » 11 Mar 2019 12:03

I'd like to find a way to suppress the title when I use CMD.

In a batch file I frequently use CMD at the end to stop the command window from closing.
I like to see the command prompt at the end of the window.

When I use:

Code: Select all

@cmd
I get:

Code: Select all

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\>
I would like a way to not get the title:

Code: Select all

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
I was hoping this would do it:

Code: Select all

echo off & (cmd) & echo on
But it doesn't.

I realize if I use:

Code: Select all

cmd>nul
It does suppress the title but then I don't get the command prompt.

Thanks,
Docfxit

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Suppress titile on CMD

#2 Post by aGerman » 11 Mar 2019 12:22

Just use cmd /k

Steffen

Docfxit
Posts: 130
Joined: 12 Nov 2015 12:42

Re: Suppress titile on CMD

#3 Post by Docfxit » 11 Mar 2019 13:16

That's really super. I have been wanting that for years.

Thanks a bunch,

Docfxit

Post Reply