Batch file : comparison number

sourpet

Distinguished
Jul 3, 2011
2
0
18,510
Hi Forum users,
I am currently writting a batch file but I'm stuck... My batch file creates a text file and adds numbers

So for example I have numbers.txt and in it I have :
654
256
233

How do I make my batch file compare line 1 to line 2 or line 1 to line 3 ?
 

sourpet

Distinguished
Jul 3, 2011
2
0
18,510
Sorry,

I am using Windows 7, here's my program so far :
:wieght
echo Your weight in Kg :
set /P weight=
echo !weight! >>weight.txt

So here a dude will enter every day his weigth and I'd like to make an option " Compare your first day (first weigth) to your last one AND/OR your previous weigth to your new one.

Any help needed.