1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
@echo off
REM * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
REM * The program NeXTTool.exe must exist in the same folder as this file or be on the path!*
REM * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
if not exist NeXTTool.exe goto nexttoolmissing
if not exist MotorControl22.rxe goto binarymissing
goto download
goto end
:nexttoolmissing
echo.
echo The NeXTTool, NeXTTool.exe, is missing.
echo This file has to be in the same directory as this script
echo or must reside in the Windows search path.
echo.
echo Go to http://bricxcc.sourceforge.net/utilities.html
echo and download the latest NeXTTool utility,
echo or download BricxCC, where this tool is
echo already included.
echo Then place NeXTTool.exe in this folder restart the script:
echo.
cd
echo.
goto end
:binarymissing
echo.
echo Cannot find binary RXE file to transfer. Aborting...
echo.
goto end
:download
echo.
echo This program downloads MotorControl22.rxe
echo to the NXT brick. Please connect a single NXT brick
echo via a USB cable and turn it on.
echo Make sure Firmware 1.28 (or higher) is installed on the NXT.
echo.
pause
echo.
echo Transferring program...
NeXTTool /COM=usb -download=MotorControl22.rxe
echo Verifying download...
echo.
echo If the next paragraph shows
echo MotorControl22.rxe=xxxxx
echo then everything worked.
echo A blank line indicates failure!
echo.
NeXTTool /COM=usb -listfiles=MotorControl22.rxe
:end
echo.
echo Script finished.
echo.
pause
|