@ECHO OFF

:upload

python wm2000_ws110x_oss_recovery.py --bl=.\fw\wm2000\wm2000-bootloader-4_07.bin --mon=.\fw\wm2000\mon-wm2000-4_12.bin --tios=.\fw\wm2000\tios-wm2000-4_03_04.bin --app0=.\fw\wm2000\WM2000-Companion.tpc --app1=.\fw\wm2000\WM2000-Companion.tpc --serial=COM11

choice /c YN /t 600 /d N /m "Press Y to upload the next unit or N to exit the program."

if errorlevel == 2 goto endfile
if errorlevel == 1 goto upload

:endfile
echo Exiting Program...