I need to count, in a file, the number of times a batch script has been executed.
In linux shell, this would be something like
counter=`cat buildnumber.txt`;
counter=`echo $counter+1|bc`
echo $counter > buildnumber.txt
but how does one do this in a batch file?