Index: reactos/base/shell/cmd/cmd.c =================================================================== --- reactos/base/shell/cmd/cmd.c (revision 73453) +++ reactos/base/shell/cmd/cmd.c (working copy) @@ -163,6 +163,7 @@ BOOL bUnicodeOutput = FALSE; BOOL bDisableBatchEcho = FALSE; BOOL bDelayedExpansion = FALSE; +BOOL bTitleSet = FALSE; DWORD dwChildProcessId = 0; HANDLE hIn; HANDLE hOut; @@ -378,6 +379,7 @@ } GetConsoleTitle (szWindowTitle, MAX_PATH); + bTitleSet = FALSE; /* check if this is a .BAT or .CMD file */ dot = _tcsrchr (szFullName, _T('.')); @@ -475,7 +477,8 @@ /* Get code page if it has been changed */ InputCodePage= GetConsoleCP(); OutputCodePage = GetConsoleOutputCP(); - SetConsoleTitle(szWindowTitle); + if (!bTitleSet) + SetConsoleTitle(szWindowTitle); return dwExitCode; } Index: reactos/base/shell/cmd/title.c =================================================================== --- reactos/base/shell/cmd/title.c (revision 73453) +++ reactos/base/shell/cmd/title.c (working copy) @@ -13,6 +13,7 @@ #ifdef INCLUDE_CMD_TITLE +extern BOOL bTitleSet; INT cmd_title (LPTSTR param) { @@ -27,6 +28,7 @@ return 0; } + bTitleSet = TRUE; return SetConsoleTitle (param); }