how to set the default cmd shell for cmd ? (Cmder)

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
woshichuanqilz
New Member
New Member
Posts: 1
Joined: 2015-12-18, 06:46 UTC

how to set the default cmd shell for cmd ? (Cmder)

Post by *woshichuanqilz »

I use a third-part cmd shell instead of cmder now.
So I want to use the cmder as the default cmd shell for Total Commander, what should I do about it?
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

TC only opens Windows console shell in three cases:
1. When you execute some file associated with it (e.g. batch file) - you can change it with internal associations.
2. When you run cm_ExecuteDOS command (or via menu Commands - Open Command Prompt Window) - you can simply start your cmder instead.
3. When you type some command in TC command line and press Shift+Enter - you can try NoClose Replacer, it supports custom shells.
User avatar
nsp
Power Member
Power Member
Posts: 1816
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: how to set the default cmd shell for cmd ?

Post by *nsp »

woshichuanqilz wrote:I use a third-part cmd shell instead of cmder now.
So I want to use the cmder as the default cmd shell for Total Commander, what should I do about it?
If you mean that you use cmder (http://cmder.net/) this is not a shell this is just a console emulator based on conemu !
By default cmder use powershell as shell with a dedicated startup script. if you want to launch new console inside cmder you can do it folowing this :
http://superuser.com/questions/810550/how-to-replace-the-cmd-alias-in-windows
raytc
Senior Member
Senior Member
Posts: 274
Joined: 2004-06-28, 11:03 UTC

Post by *raytc »

You're using Cmder?

this works fine:

Command: "path2cmder.exe\Cmder.exe"
Parameters: /START "%P"
Start path: path2cmder.exe
Icon file: path2cmder.exe\Cmder.exe
Tooltip: Cmder
raytc
Senior Member
Senior Member
Posts: 274
Joined: 2004-06-28, 11:03 UTC

Post by *raytc »

raytc wrote:You're using Cmder?

this works fine:

Command: "path2cmder.exe\Cmder.exe"
Parameters: /START "%P"
Start path: path2cmder.exe
Icon file: path2cmder.exe\Cmder.exe
Tooltip: Cmder
Since the new TC releases (TC 9) this doesn't work anymore.

Anyone can help me how to make it work?
User avatar
nsp
Power Member
Power Member
Posts: 1816
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

raytc wrote:
raytc wrote:You're using Cmder?

this works fine:

Command: "path2cmder.exe\Cmder.exe"
Parameters: /START "%P"
Start path: path2cmder.exe
Icon file: path2cmder.exe\Cmder.exe
Tooltip: Cmder
Since the new TC releases (TC 9) this doesn't work anymore.

Anyone can help me how to make it work?
I'm not sure this is related to TC give a look on the following...

https://github.com/cmderdev/cmder/issues/91
https://github.com/cmderdev/cmder/issues/457
raytc
Senior Member
Senior Member
Posts: 274
Joined: 2004-06-28, 11:03 UTC

Post by *raytc »

nsp wrote:
raytc wrote:
raytc wrote:You're using Cmder?

this works fine:

Command: "path2cmder.exe\Cmder.exe"
Parameters: /START "%P"
Start path: path2cmder.exe
Icon file: path2cmder.exe\Cmder.exe
Tooltip: Cmder
Since the new TC releases (TC 9) this doesn't work anymore.

Anyone can help me how to make it work?
I'm not sure this is related to TC give a look on the following...

https://github.com/cmderdev/cmder/issues/91
https://github.com/cmderdev/cmder/issues/457
Do you know if ConEmu works with TC?
rachman
Junior Member
Junior Member
Posts: 12
Joined: 2016-10-01, 10:33 UTC

Post by *rachman »

Parameter I use for ConEmu : /here /cmd {cmd} -cur_console:n
That is based from what I see from registry for right-click context menu.
And also let Start path blank
raytc
Senior Member
Senior Member
Posts: 274
Joined: 2004-06-28, 11:03 UTC

Post by *raytc »

rachman wrote:Parameter I use for ConEmu : /here /cmd {cmd} -cur_console:n
That is based from what I see from registry for right-click context menu.
And also let Start path blank
I don't understand your parameter command.

Do you mean:

Command: "path2ConEmu.exe\ConEmu.exe"
Parameters: /here /cmd {cmd} -cur_console:n
Start path:
Icon file: path2ConEmu.exe\ConEmu.exe
Tooltip: ConEmu

Parameters must start with "/START" no?
rachman
Junior Member
Junior Member
Posts: 12
Joined: 2016-10-01, 10:33 UTC

Post by *rachman »

What I do
Command: "path2ConEmu.exe\ConEmu.exe" /here /cmd {cmd} -cur_console:n
Parameters:
Start path:
Icon file: path2ConEmu.exe\ConEmu.exe
Tooltip: ConEmu

{cmd} can be replaced with shell you wanna use, for example {PowerShell} for PowerShell
I don't use /START and it works for me
raytc
Senior Member
Senior Member
Posts: 274
Joined: 2004-06-28, 11:03 UTC

Post by *raytc »

Wow.. Thank you very much.
It works well ;)
TC 9.51 (x64) - win10
Post Reply