:echo col txt -- echoes text in a specific color :: -- col [in] - color code, append a DOT to omit line break, call 'color /?' for color codes :: -- txt [in] - text output :$created 20060101 :$changed 20080219 :$categories Echo,Color :$source http://www.dostips.com SETLOCAL for /f "tokens=1,*" %%a in ("%*") do ( set col=%%a set txt=%%~b ) set cr=Y if "%col:~-1%"=="." ( set cr=N set col=%col:~0,-1% ) call:getColorCode "%col%" col set com=%temp%.\color%col%.com if not exist "%com%" ( echo.N %COM% echo.A 100 echo.MOV BL,%col% echo.MOV BH,0 echo.MOV SI,0082 echo.MOV AL,[SI] echo.MOV CX,1 echo.MOV AH,09 echo.INT 10 echo.MOV AH,3 echo.INT 10 echo.INC DL echo.MOV AH,2 echo.INT 10 echo.INC SI echo.MOV AL,[SI] echo.CMP AL,0D echo.JNZ 109 echo.RET echo. echo.r cx echo.22 echo.w echo.q )|debug>NUL "%com%" %txt% rem del "%com%" /q if "%cr%"=="Y" echo. EXIT /b