Windows – way to replace cmd window with the new windows terminal

cmd.exeterminal-emulatorwindows 10

Now that we have the new Windows Terminal, I never want to see the cmd.exe window again on my dev machine – is there any way I can make it replace it across the whole OS, just like in ConEmu and Cmder?

Update: I understand cmd.exe will never go away and I am not asking how to remove cmd.exe from Windows, what I would like to know is whether there is a way to redirect all input/output from cmd.exe to the Windows Terminal so that when I double-click a batch file or PowerShell script, it's output will open in a new tab within Windows Terminal (if I understand it right, this is also what ConEmu and Cmder do).

Best Answer

cmd.exe doesn't have a window. cmd.exe is just a console application. The window you usually see when you start cmd.exe has nothing to do with cmd.exe, because it's a console window drawn by a part of Windows kernel called conhost.exe. You can replace cmd.exe with whatever you want, it still won't change the console window. The console window is automatically allocated by the kernel whenever the system starts any console process.

Your only option is to use ConEmu, which intercepts conhost.exe and automatically hides the allocated console.

Related Question