Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Total Commander integration #853

Closed
Maximus5 opened this issue Jul 31, 2015 · 13 comments
Closed

Total Commander integration #853

Maximus5 opened this issue Jul 31, 2015 · 13 comments

Comments

@Maximus5
Copy link
Owner

Originally reported on Google Code with ID 853

OS version: WinXP SP3 x86
ConEmu version: 121216

Standard command prompt ("cmd.exe") doesn't get replaced by ConEmu in Total Commander,
even though i have set (what i think are) the required options for it to happen.

Please see the attached picture.

It works fine for "explorer.exe" (using "Start/Run").

Reported by dmasct1 on 2012-12-21 09:21:04


- _Attachment: [conemu-integration.jpg](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-853/comment-0/conemu-integration.jpg)_
@Maximus5
Copy link
Owner Author

1. And where is Total Cmd version?
2. How exactly you are trying to start cmd?
3. Start ConEmu, start Total, create minidump of totalcmd.exe and send zip to me

Reported by ConEmu.Maximus5 on 2012-12-21 11:35:58

@Maximus5
Copy link
Owner Author

Yes sorry, Total Commander version here is 8.0.
I am using "Open command prompt window" from the "Commands" menu (english menus, see
attached picture).
But it only open "cmd.exe", not ConEmu.

Am i correct thinking this the purpose of "Force ConEmu as default terminal for console
applications" and "Register on OS startup" options, or not?

When running "cmd" from Windows Start Menu / "Run", it runs ConEmu.

"TOT5.7z" is a minidump of the "totalcmd.exe" process.

Reported by dmasct1 on 2012-12-21 13:47:44


- _Attachment: [tc-open_prompt.jpg](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-853/comment-2/tc-open_prompt.jpg)_ - _Attachment: [TOT5.7z](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-853/comment-2/TOT5.7z)_

@Maximus5
Copy link
Owner Author

I'll check this. 'Default terminal' must hooks Total normally (as intended).

Reported by ConEmu.Maximus5 on 2012-12-21 14:53:08

@Maximus5
Copy link
Owner Author

OK it seems i mistaked two options in ConEmu:

The "Integration" settings aren't required for me, all i got to do is setting the "AutoRun"
registery value in the "Startup/CompSpec/Automatic attach" option panel of ConEmu.

After that, all "cmd.exe" commands from anywhere under Windows become "ConEmu" windows.
(I also had to install "clink" using its "autorun" option so that it also gets opened
by default with "cmd.exe").

This is great, many thanks for ConEmu by the way, it is changing my IT life!

Reported by dmasct1 on 2012-12-21 14:59:07

@Maximus5
Copy link
Owner Author

Additional note : When i say "all "cmd.exe" commands from anywhere under Windows become
"ConEmu" windows", i mean it is then also working for "cmd.exe" opened under Total
Commander.

Reported by dmasct1 on 2012-12-21 15:01:32

@Maximus5
Copy link
Owner Author

"Default terminal" feature from "Integration" page is more powerful than "Autorun".
"Integration" must seize starting of ANY console program, not only cmd.exe.
For example, you may dblclick on, hm, "ipconfig.exe" in Total panel and voila...
Also there will be no flickering of real console window.

Reported by ConEmu.Maximus5 on 2012-12-21 16:28:54

@Maximus5
Copy link
Owner Author

Oh i see, then indeed i will gladly switch to "Integration" mode once it's working for
me, to skip the successive double windows opening (flickering) on "Autorun" redirect.

Reported by dmasct1 on 2012-12-21 16:56:27

@Maximus5
Copy link
Owner Author

Shit.
TCMD uses old WinExec function.
MSDN said: This function is provided only for compatibility with 16-bit Windows. Applications
should use the CreateProcess function.
Ha! Going to hook it.

Reported by ConEmu.Maximus5 on 2012-12-31 14:10:05

@Maximus5
Copy link
Owner Author

What is the proper way to run ConEmu using Total Commander's Shift+Enter command? It
is supposed to run a command line in a terminal and do not close the window. The command
line is passed to NoClose.exe (or NoClose64.exe for 64-bit version) placed in Total
Commander's installation directory. I have the same issue with the "default terminal"
feature.

Reported by mikhail.matrosov on 2013-01-05 09:15:24

@Maximus5
Copy link
Owner Author

It seems like I found the most unintrusive way. In the NoClose.ini file, presented by
NoClose Replacer, I specified 

CommandProcessor=ConEmu64.exe /cmd %1

This works fine even if the command line has quotes and stream redirections. Thanks
for such convenient implementation of the /cmd switch!

Reported by mikhail.matrosov on 2013-01-05 09:40:26

@Maximus5
Copy link
Owner Author

Thought, "/single" and "-new_console:c" are missed

CommandProcessor=ConEmu64.exe /Single /cmd %1 -new_console:c

Reported by ConEmu.Maximus5 on 2013-01-05 10:13:10

@Maximus5
Copy link
Owner Author

I don't see file "NoClose.ini" in my totalcmd folder. NOCLOSE.EXE and NOCLOSE64.EXE
- exists.

Reported by ConEmu.Maximus5 on 2013-01-05 10:16:31

@Maximus5
Copy link
Owner Author

Reported by ConEmu.Maximus5 on 2013-02-23 21:38:33

  • Status changed: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant