Page 1 of 1

Suppress titile on CMD

Posted: 11 Mar 2019 12:03
by Docfxit
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

Re: Suppress titile on CMD

Posted: 11 Mar 2019 12:22
by aGerman
Just use cmd /k

Steffen

Re: Suppress titile on CMD

Posted: 11 Mar 2019 13:16
by Docfxit
That's really super. I have been wanting that for years.

Thanks a bunch,

Docfxit