I'm trying to compare a sequence of 9 numbers (separated by
,) using a batch file.
The comparison is always made by the corresponding sequence like:
mPrevious <-> mCurrent mPrevious <-> mCurrent
I need to know if at least one sequece have changed. In the example bellow,
234 changed to
setlocal ENABLEDELAYEDEXPANSION @echo off set mPrevious=229,234,235,127,58,0,131,133,146 set mCurrent=229,230,235,127,58,0,131,133,149 for /f "tokens=1,2,3,4,5,6,7,8,9 delims=," %%a IN ('echo !mPrevious!') do ( )