I'm working on a batch routine in Windows 10 and using the escape sequences to change the color of some of the output to highlight info. This works great until the routine hits the PhotoResizer command. After that, the escape sequences appear in the output as literal characters rather than changing the color of the output.
Here's the batch routine:
@echo off
for /d %%F in (*) do (
echo Examining [92m%%F[0m Folder ... >&2
cd "%%F"
for %%C in (*.cbz) do (
echo [92m Processing [0m %%F\%%C >&2
if exist "%%F\%%C" (
echo ...File already exists "[91m%%C[0m" >&2
) ELSE (
md "R:\%%~nC"
echo ...[92m Unpacking [0m >&2
7z x -o"R:\1280_%%~nC" "%%C" > nul
echo ...[94m Resizing: [0m %%F\%%C >&2
PhotoResize -^1280 -m -q80 -i -s -e -o "R:\%%~nC"
echo ...[92m Repacking [0m >&2
7z a -mx0 -mmt4 -bd -tzip "%%F\%%C" "%%~nC\*.*" > nul
echo ...[92m Cleaning up [0m >&2
rd "R:\%%~nC" /S/Q
)
)
cd ..
)
pause
Here is a sample of the output:
https://dl.dropboxusercontent.com/u/13997874/BatchColorTest.jpg
You can see that the escape color sequences work for the first couple lines, but as soon as it hits that PhotoResize command, the escape sequences are no longer interpreted.
I thought it might have something to do with the 7-zip command, so I REM-ed it out and tried it, but the results were the same.
Any ideas how I can get Photo Resizer to work with Windows 10 escape sequences?
Anyone? Buehler? Anyone?
Find out how Vista icons differ from XP icons.
See how RealWorld Icon Editor handles Vista icons.