sharing about .NET and technology RSS 2.0
 Tuesday, November 14, 2006

One of the oldest and most basic programs is certainly the command prompt (cmd.exe). One thing is certain, you still can't do without the command prompt, and certainly being a developer.  I came across a nice tool, called Console, which enhances the command prompt. I have been using it for a couple of months now, and I really like it.

One of the things you should really customize is your PROMPT. More information about changing the PROMPT can be found here. Having, for example, your current directory path on a separate line is really useful. You can customize it through the environment variable called PROMPT, like Scott is doing, but I prefer passing it as a parameter to the cmd.exe. This way I can easily copy the application and no reboot is required. This can be done by the /k argument of the cmd.exe.

Here is a snippet of my XML configuration file for Console.

console.xml - Copy Code
<tab title="Console"> <console shell="cmd /k PROMPT $p$_$+$g" init_dir=""/> <cursor style="11" r="255" g="255" b="255"/> <background type="2" r="0" g="0" b="0"> <image file="" relative="0" extend="0" position="0"> <tint opacity="190" r="0" g="0" b="0"/> </image> </background> </tab> <tab title="cmd"> <console shell="cmd.exe /k PROMPT $p$_$+$g" init_dir=""/> <cursor style="11" r="255" g="255" b="255"/> <background type="0" r="0" g="0" b="0"> <image file="" relative="0" extend="0" position="0"> <tint opacity="0" r="0" g="0" b="0"/> </image> </background> </tab> <tab title="VS.NET 2005"> <console shell="cmd /k PROMPT $p$_$+$g &amp;&amp; C:\PROGRA~1\MID05A~1\VC\vcvarsall.bat" init_dir=""/> <cursor style="0" r="255" g="255" b="255"/> <background type="2" r="0" g="0" b="0"> <image file="" relative="0" extend="0" position="0"> <tint opacity="188" r="0" g="0" b="0"/> </image> </background> </tab> <tab title="PowerShell"> <console shell="C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe" init_dir=""/> <cursor style="0" r="255" g="255" b="255"/> <background type="2" r="0" g="0" b="0"> <image file="" relative="0" extend="0" position="0"> <tint opacity="189" r="0" g="0" b="0"/> </image> </background> </tab>
This is the result in Console

Tuesday, November 14, 2006 10:57:18 PM (Romance Standard Time, UTC+01:00)  #    Comments [0] -

Navigation
Archive
<January 2009>
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2009
Christoph De Baene
Sign In
Statistics
Total Posts: 154
This Year: 0
This Month: 0
This Week: 0
Comments: 166
All Content © 2009, Christoph De Baene
DasBlog theme 'Business' created by Christoph De Baene (delarou)