Problem calling dos color command from tcl Problem calling dos color command from tcl mjcorri (Programmer) (OP) 23 Jun 09 14:04 I'm trying to change the font color of the command prompt by executing "color 09" from a tcl script. I got an error so I tried executing the command in a bat file. I make the call:catch [ exec ChangeColor.bat "0A" ]ChangeColor.bat is just:color %1This doesn't work though. RE: Problem calling dos color command from tcl mikrom (Programmer) 23 Jun 09 16:06 This workssys.tclCODEset cmd "|mycmd.bat"set f [open $cmd "r"]close $fwheremycmd.bat is:CODEstart color 0ABut it doesn't change the font color in the recent command window, insted it opens new command window (with green on black). RE: Problem calling dos color command from tcl mjcorri (Programmer) (OP) 23 Jun 09 17:19 I'm trying to change the color of the recent window. I tried using your solution and taking out the start from the bat file, but that wont work. Do you know why? RE: Problem calling dos color command from tcl mikrom (Programmer) 23 Jun 09 19:19 I'm on windows Vista and that works.Have you exactly copied the code I posted above? For example if you forget the pipe character "|" inCODEset cmd "|mycmd.bat"then it will not work. RE: Problem calling dos color command from tcl mikrom (Programmer) 23 Jun 09 20:29 This works tooCODEset cmd "mycmd.bat"exec $cmdor thisCODEexec cmd /c start color 0ABut both of the above scripts opens new colored window, because they used the START command. Without START command it doesn't work.I tried to execute this command in another languages too:PerlCODEuse strict;use warnings;my $rc=system("color 0A");print "\$rc = $rc\n"PythonCODEimport osrc=os.system("color 0A")print "rc = %d" % rcREXXCODEmd = "color 0A"cmdsay "rc = " || rcAll the above code examples in Perl, Python, REXX (ooRexx and Regina) work in windows without problems and (in difference to Tcl) they colors font in the current window.It seems to be somethng wrong with Tcl on windows (I'm using ActiveTcl) - I don' know what's wrong, but if I would you I would rather use other language for the given purpose on windows. RE: Problem calling dos color command from tcl mjcorri (Programmer) (OP) 24 Jun 09 03:04 Thanks for the help. I'd switch but I'm already to invested in the tcl script I have now. Thanks again though.