Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: franck on April 24, 2008, 10:54:45 am

Title: change the terminal to launch console program on Windows
Post by: franck on April 24, 2008, 10:54:45 am

How can i change the terminal to launch console program on Windows (replace "cmd" by "msys.bat")?

-Franck.
Title: Re: change the terminal to launch console program on Windows
Post by: orel on April 24, 2008, 06:18:49 pm
not really CB related but...

under windows, and without changing anything, a command is sent to an executable called CMD.exe, which in fact is the official windows command line tool.

If you want to send commands to another command line executable, just type the path to this program before the command to send.

I am not sure you can replace (or i don't know how to do it) the official windows cmd line by another using the config panel or evenregedit.
But you can try this (never tried myself) :
- go to c:\Windows\System32\
- backup your old cmd.exe as cmd.bak
- copy your new one here and rename it as cmd.exe

Try at your own risk
Title: Re: change the terminal to launch console program on Windows
Post by: franck on April 25, 2008, 09:20:41 am

Thank you.

In fact, my question is related to C::B: when running a project, C::B launches a Windows cmd. I would like to know whether it is possible to change it (in order to use msys.bat).

I've looked into "settings" menu: in "General settings" of "Environment settings", there are 2 fields ("shell to run command in" and "Terminal to launch console programs" but there are inactive.

-Franck.
Title: Re: change the terminal to launch console program on Windows
Post by: zaradek on September 18, 2008, 06:58:59 pm
Hello,

I have the same goal, and the same problem as you have, franck. "Terminal to launch console programs" is inactive.

Could you find out how to get it work?

Cheers, Máté
Title: Re: change the terminal to launch console program on Windows
Post by: elimcodmartinez on February 13, 2014, 10:34:02 am
BUMP.

For far enough I've been using the lame cmd.exe. I've discovered that indeed there are alternatives such as Console2 and others, capable of resizing the terminal and making copypasting not a pain, and I'd like to use them.
Title: Re: change the terminal to launch console program on Windows
Post by: stahta01 on February 13, 2014, 03:41:05 pm
BUMP.

For far enough I've been using the lame cmd.exe. I've discovered that indeed there are alternatives such as Console2 and others, capable of resizing the terminal and making copypasting not a pain, and I'd like to use them.


Use the tool menu or ToolPlus PlugIn to run the exe; it is NOT hard to do.
It does take a little effort on your part.

Note: I have NOT used the above with another Windows Terminal; but, it should be possible.
If not, please start a new thread in the "Using CB" sub-forum on what you tried to do and how it failed.

Tim S.