Welcome to the Rockbox Technical Forums!
:::: This Windows batch script will update your player to the most current build of Rockbox.:: :: If desired, change the following "set" definitions to reflect your configuration. If :: left blank, the script will automatically determine the correct settings.:: *** This script will automatically determine the correct URL for your model player unless it's specified hereset RockboxURL=:: *** This script will automatically locate your player unless the drive letter is specified hereSet DAPLetter=:: -------------------------------------------------------------------------------------------@echo offsetlocal enableextensionsif exist %Systemroot%\System32\bitsadmin.exe GoTo FindDAPLetterif exist %systemroot%\MPSReports\MSUS\bin\bitsadmin.exe GoTo FindDAPLetterif exist %Systemroot%\bitsadmin.exe GoTo FindDAPLetterGoTo BitsAdminNotFound:FindDAPLetterclsif defined DAPLetter GoTo FindRockboxURLecho Locating Your Player...echo.echo *****************************************************************************echo *** ***echo *** If a Windows error box pops up, simply choose "Continue". This will ***echo *** not have a negative effect on locating or updating your player. ***echo *** ***echo *****************************************************************************FOR %%g IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%g:\.rockbox\rockbox-info.txt SET DAPLetter=%%gif (%DAPLetter%)==() GoTo DAPNotFound:FindRockboxURLclsif defined RockboxURL GoTo CheckDirfor /f "delims=" %%h in ('qgrep -e "Target:" %DAPLetter%:\.rockbox\rockbox-info.txt') do @set TargetDefine=%%hset PlayerType=%TargetDefine:~8%Set RockboxURL=http://build.rockbox.org/data/rockbox-%PlayerType%.zip:CheckDirclsecho Checking for RockboxUpdate Directory...if exist "%programfiles%\RockboxUpdate" GoTo CheckForUnzipmkdir "%programfiles%\RockboxUpdate":CheckForUnzipset path=%path%;%systemroot%\MPSReports\MSUS\bin;%programfiles%\RockboxUpdateclsecho Checking For unzip.exe to Extract Rockbox Files...if exist "%programfiles%\RockboxUpdate\unzip.exe" GoTo Beginclsbitsadmin /RawReturn /Resetbitsadmin /RawReturn /Create DownloadUnzipbitsadmin /RawReturn /AddFile DownloadUnzip http://stahlworks.com/dev/unzip.exe "%programfiles%\RockboxUpdate\unzip.exe"bitsadmin /RawReturn /Resume DownloadUnzip:StatusLoop1 for /f "delims=" %%d in ('bitsadmin /RawReturn /GetState DownloadUnzip') do @set DownloadUnzipStatus=%%d for /f "delims=" %%e in ('bitsadmin /RawReturn /GetBytesTotal DownloadUnzip') do @set DownloadUnzipBytesTotal=%%e for /f "delims=" %%f in ('bitsadmin /RawReturn /GetBytesTransferred DownloadUnzip') do @set DownloadUnzipBytesTransferred=%%f Set /A DownloadUnzipPercentDone = (%DownloadUnzipBytesTransferred% * 100) / %DownloadUnzipBytesTotal% cls echo Downloading unzip.exe to Extract Rockbox Files echo Status: %DownloadUnzipStatus% echo File Transfer is %DownloadUnzipPercentDone%%% Complete ping 224.0.0.0 -n 1 -w 500 > NUL if %DownloadUnzipStatus% EQU TRANSIENT_ERROR GoTo ErrorDownloadingUnzip if %DownloadUnzipStatus% NEQ TRANSFERRED GoTo StatusLoop1bitsadmin /Complete DownloadUnzip:Beginclsecho Deleting Old Rockbox Files...del /F /Q "%programfiles%\RockboxUpdate\Rockbox_Current.zip"rd /S /Q "%programfiles%\RockboxUpdate\.rockbox"clsecho Starting Transfer of Latest Rockbox Build For: %PlayerType%bitsadmin /RawReturn /Resetbitsadmin /RawReturn /Create rockboxbitsadmin /RawReturn /AddFile rockbox %RockboxURL% "%programfiles%\RockboxUpdate\Rockbox_Current.zip"bitsadmin /RawReturn /Resume rockbox:StatusLoop2 for /f "delims=" %%a in ('bitsadmin /RawReturn /GetState rockbox') do @set status=%%a for /f "delims=" %%b in ('bitsadmin /RawReturn /GetBytesTotal rockbox') do @set BytesTotal=%%b for /f "delims=" %%c in ('bitsadmin /RawReturn /GetBytesTransferred rockbox') do @set BytesTransferred=%%c Set /A PercentDone = (%BytesTransferred% * 100) / %BytesTotal% cls echo Downloading Latest Rockbox Build For: %PlayerType% echo Status: %status% echo File Transfer is %PercentDone%%% Complete ping 224.0.0.0 -n 1 -w 500 > NUL if %Status% EQU TRANSIENT_ERROR GoTo ErrorDownloadingRockbox if %status% NEQ TRANSFERRED GoTo StatusLoop2bitsadmin /Complete rockbox:unzipclsecho Unzipping Latest Rockbox Build...unzip -o -qq "%programfiles%\RockboxUpdate\Rockbox_Current.zip" -d "%programfiles%\RockboxUpdate"::Determine Old Versionfor /f "delims=" %%i in ('qgrep -e "Version:" %DAPLetter%:\.rockbox\rockbox-info.txt') do @set OldVersion=%%iset OldVersion=%OldVersion:~9,-7%::Determine New Versionfor /f "delims=" %%j in ('qgrep -e "Version:" "%programfiles%\RockboxUpdate\.rockbox\rockbox-info.txt"') do @set NewVersion=%%jset NewVersion=%NewVersion:~9,-7%clsecho Updating Your Player with the Latest Rockbox Build For: %PlayerType%echo.echo Old Rockbox Version: %OldVersion%echo New Rockbox Version: %NewVersion%echo.echo Please Wait...xcopy "%programfiles%\RockboxUpdate\.rockbox" %DAPLetter%:\.rockbox /C /E /H /I /R /Y /Qbitsadmin /Resetclsecho Your %PlayerType% Has Been Updated With Rockbox Version %NewVersion%echo.echo This Window Will Close Momentarily...ping 224.0.0.0 -n 1 -w 5000 > NULendlocalexit::------------------::Error Handling::------------------:ErrorDownloadingUnzipclsecho.echo The following error occurred while downloading unzip.exe:echo.bitsadmin /GetError DownloadUnzipecho.echo Please restart this script, or try again later.echo.pausebitsadmin /Resetendlocalexit:ErrorDownloadingRockboxclsecho.echo The following error occurred while downloading Rockbox:echo.bitsadmin /GetError Rockboxecho.echo Please restart this script, or try again later.echo.pausebitsadmin /Resetendlocalexit:DAPNotFoundclsecho.echo The script could not locate your player. Make sure it's plugged in and run echo this script again. If it is plugged in, then manually edit script and modify echo "Set DAPLetter= " to reflect your player's drive letter.echo.pausebitsadmin /Resetendlocalexit:BitsAdminNotFoundclsecho.echo This script requires the Microsoft BITS Administration utility in order to echo download files. This utility could not be found on your system. You will now echo be forwarded to a Microsoft URL to download the MS Support Services Reporting echo Tool, which includes the needed BitsAdmin utility. Run this script again after echo you have downloaded and installed it.echo.pausecmd /c start http://download.microsoft.com/download/b/b/1/bb139fcb-4aac-4fe5-a579-30b0bd915706/MPSRPT_SUS.EXEendlocalexit
What are the licenses on those?
ping 224.0.0.0 -n 1 -w 1000
Link removed. Try Google, or PM me if you need help finding these files, and I'll point you in the right direction. They can all be legally downloaded from the owners' sites without violating any copyrights.
The only variable that needs to be manually defined is the URL for the player's Rockbox build. I haven't figured out a way to determine that yet, although looking in the .rockbox/rockbox-info.txt file might be the answer.
Question: The only DAP I've installed Rockbox on is the Sansa Fuze V1 and V2. Is the process of installing a new compiled build the same on other players (i.e. copy the .rockbox folder)?
Page created in 0.099 seconds with 21 queries.