| Home | Forums | Register | FAQ | Search | Today's Posts | Mark Forums Read |
|
Welcome to the misticriver forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: batch, clean, file, rockbox |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Rockbox cleaning batch file
I was wondering if anyone update their Rockbox build frequently, and if they copy the whole contents of the archive.
I myself run a .bat file to clean out the files I don't need: @echo off if exist .rockbox goto Continue echo Folder .rockbox not found! Exiting. goto Finished :Continue cd .rockbox echo Deleting rombox.iriver del rombox.iriver echo Deleting docs, themes and wps folders rd docs /s/q rd themes /s/q rd wps /s/q echo Deleting all language files but english.lng cd langs for %%a in (*.lng) do if not %%a==english.lng del %%a cd..\rocks echo Deleting unused rocks del battery_bench.rock del bounce.rock del chessclock.rock del cube.rock del demystify.rock del dice.rock del dict.rock del disktidy.rock del doom.rock del fire.rock del fireworks.rock del flipit.rock del invadrox.rock del logo.rock del mandelbrot.rock del metronome.rock del mosaique.rock del oscilloscope.rock del pacbox.rock del plasma.rock del pong.rock del random_folder_advanc e_config.rock del snake.rock del snow.rock del starfield.rock del sudoku.rock del vu_meter.rock del xobox.rock cd..\viewers echo Deleting unused viewers del chip8.rock del iriver_flash.rock del iriverify.rock del jpeg.rock del midiplay.rock del mpegplayer.rock del rockboy.rock del search.rock del sort.rock del wav2wv.rock del zxbox.rock cd.. echo Overwriting default viewers configuration copy ..\viewers.config /Y echo Done! :Finished pause Copy and paste this into a text file, rename it to .bat (say rockbox.bat). You can of course change it to exclude/include some rocks and viewers, or change english.lng to match whatever language file you use. I also overwrite the viewers.config with a file in the same location as the .bat, which contains the following lines only: txt,viewers/viewer,55 55 55 55 55 55 nfo,viewers/viewer,55 55 55 55 55 55 txt,rocks/text_editor, 55 55 55 55 55 55 mp3,viewers/vbrfix,10 08 58 38 04 02 wav,viewers/mp3_encoder, 00 00 00 00 00 00 zzz,viewers/properties,00 00 00 00 00 00 This removes any references to the viewers I don't use and that I delete in the batch file. Copy and paste this into a text file named viewers.config. Then, simply extract the rockbox build so that the .rockbox folder is in the same folder as the batch file and the viewers.config file, and run it. |
|
|||
|
Seems like a lot of work. I just delete the old .rockbox folder from the player, then move the new one onto it after prepping it by moving the rockbox.iriver, config files, and fonts folder into it. I suppose your method would be ok if you were upgrading every day or something, but I don't do it that often - in fact I've backgraded to a February build that works the way I like it, instead of the new way.
|
|
|||
|
Yup, I upgrade with a daily build quite often, at least once a week, so the batch file saves me a lot of cleaning up each time.
But yeah, if you keep every single file, then my batch file is pointless |
|
|||
|
Yes, I can see some good reasons to use a bach file like that. However, I've got an ihp140, and there's usually at least 8-10 gb's free on it, and the whole folder of rockbox stuff, with fonts and everything added in, is less than the size of many songs, and takes only seconds to transfer. However, one click upgrades are cool too!
|