|If you mean coloring the actual values in the csv files, that'd be impossible as it is a plain-text file.|
However, if you mean displaying the values with the colors specified in the csv, you can use this (Given you only have three variables with their colors on each line):
:: You need this loop at the beginning in order for :ColorText to work
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do set "DEL=%%a"
for /f "tokens=1-6 delims=," %%A in (input.csv) do (
call :ColorText %%B "%%A" n
call :ColorText %%D "%%C" n
call :ColorText %%F "%%E" n
<nul set /p ".=%DEL%" > "%~2"
findstr /v /a:%1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1
if /i "%~3"=="n" echo.
The color echoing is a slightly modified version of the answer found here. To use it, you use this:
call :ColorText <color> <text> [n]
The "n" is for echoing a newline after the text, if the n is not provided, you'll get the text like this: var1var2var3 instead of
Valid colors can be found in color /?
When you copy this into your script remember to copy the top FOR loop. You can put :ColorTxt in the bottom of your script, or anywhere else as long as it doesn't run without being called.
Don't worry if plan A fails, there are 25 more letters in the alphabet ;)
message edited by RainBawZ