This image is the top of the content box. Unfortunately, there is no information-based reason for this div to be here. It's just here for design reasons. Sorry.
Go Back   MisticRiver :: For iriver Enthusiasts > All things Rockbox > ROCKbox Forums > ROCKbox for H1xx Series
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: , , ,

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old April 3rd, 2007, 07:29 AM
Newbie Floating Down The Mistic River
 
Join Date: Nov 2006
Posts: 25
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old April 4th, 2007, 07:50 AM
Hoping For A Cool Title
 
Join Date: Nov 2005
Posts: 74
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old April 18th, 2007, 03:33 AM
Newbie Floating Down The Mistic River
 
Join Date: Nov 2006
Posts: 25
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old April 18th, 2007, 07:57 AM
Hoping For A Cool Title
 
Join Date: Nov 2005
Posts: 74
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 04:26 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
This image is the bottom of the content box. Unfortunately, there is no information-based reason for this div to be here. It's just here for design reasons. Sorry.