Batch file science accurate conclusion

July 6, 2011 at 23:21:22
Specs: Windows
I want to make a BATCH file that will conclude an outcome. It will add 1 point to the better object to make an accurate science experiment.
Like:
@echo off
color 0a
set /p obj=Object1=
set /p obj2=Object2=
goto test

:test
set /p point=What does task A the best?:
if %point%==%obj% add1
if %point%==%obj2% add1

I dont get how to "add1"


See More: Batch file science accurate conclusion

Report •

#1
July 7, 2011 at 12:41:58
made a mistake in codeing, deleated

Report •

#2
July 7, 2011 at 12:42:29
hang on i missed something correcting now

mike


Report •

#3
July 7, 2011 at 12:46:37

::are you trying to do something like this?

@echo off
color 0a

set /p obj1="Object1="
set /p obj2="Object2="


set /a var1=1
set /a var2=1

goto test
:test
cls
echo %obj1% %var1%
echo %obj2% %var2%

echo what does task a the best? %obj1% or %obj2%
set /p point=What does task A the best? obj1 or obj2:

if %point% equ %obj1% goto object1
if %point% equ %obj2% goto object2
goto test

:object1
set /a var1=(var1+1)
goto test

:object2
set /a var2=(var2+1)
goto test

mike


Report •

Related Solutions

#4
July 7, 2011 at 12:49:18
forgot to add the user entered objects, let me know if it works out

mike


Report •

Ask Question