Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Cleanup after sandisk and mac
« previous next »
  • Print
Pages: [1]

Author Topic: Cleanup after sandisk and mac  (Read 3477 times)

Offline Zero

  • Member
  • *
  • Posts: 5
  • Absol-ute Best firmware
Cleanup after sandisk and mac
« on: July 11, 2010, 07:49:50 AM »
For this to work and not delete your music you must have all your music in the ##music# folder and a mixed media folder for your pictures, videos and your recordings. this batch file deletes all the folders made by the sansa firmware and the macintosh computers and even has a neet polished menu! well enjoy.
to make this u must make a text file called sansa.bat in the root of your mp3 player. paist the following text into that file and save as sansa.bat and the save as type must be set to all files to eleminate the sansa.bat.txt problem. well hope this is useful. and this is for windows computers only.

Code: [Select]
ECHO off
CLS
:MENU
cls
ECHO.
ECHO...................................................
ECHO PRESS 1, 2, or 3 to select your task, or 4 to EXIT.
ECHO...................................................
ECHO.
ECHO 1 - Cleanup after Sandisk
ECHO 2 - Cleanup after Mac
ECHO 3 - Cleanup after Sandisk and Mac
echo 4 - EXIT
ECHO.
SET /P M=Type 1, 2, 3 or 4 then press ENTER:
IF %M%==1 GOTO Sandisk
IF %M%==2 GOTO Mac
IF %M%==3 GOTO All
IF %M%==4 GOTO EOF
:Sandisk
rmdir /s /q \##PORT#
rmdir /s /q \audible
rmdir /s /q \PHOTO
rmdir /s /q \Video
rmdir /s /q \music
rmdir /s /q \record
del \.scrobbler.log
del \sys_conf.sys
del \res_info.sys
del \version.sdk
del \mtable.sys
GOTO MENU
:Mac
attrib \finder.dat -h
attrib \"desktop df" -h
attrib \"Desktop DB" -h
attrib \fileid.dat -h
rmdir /s /q \Trash
rmdir /s /q \"Temporary Items"
rmdir /s /q \"Desktop Folder"
rmdir /s /q \TheVolumeSettingsFolder
rmdir /s /q \TheFindByContentFolder
del \"Desktop DB"
del \"Desktop DF"
del \finder.dat
del \FILEID.DAT
GOTO MENU
:All
attrib \finder.dat -h
attrib \"desktop df" -h
attrib \"Desktop DB" -h
attrib \fileid.dat -h
rmdir /s /q \##PORT#
rmdir /s /q \audible
rmdir /s /q \PHOTO
rmdir /s /q \Video
rmdir /s /q \music
rmdir /s /q \record
rmdir /s /q \Trash
rmdir /s /q \"Temporary Items"
rmdir /s /q \"Desktop Folder"
rmdir /s /q \TheVolumeSettingsFolder
rmdir /s /q \TheFindByContentFolder
del \.scrobbler.log
del \sys_conf.sys
del \res_info.sys
del \version.sdk
del \mtable.sys
del \"Desktop DB"
del \"Desktop DF"
del \finder.dat
del \FILEID.DAT
GOTO MENU

By the way this will work on any drive letter mp3 player and it only cleans up classic mac crap because i dont know what mac osx junk looks like.
this is ment for the sansa e200v2 nut it might work on others but i dont know. it does not work properly from the sandisk usb connection because sansa firmware hides the ## folders so it cant delete them so you must use the rockbox usb mode for it to work.

By the way Information about other os junk could be used to make it work for more operateing systems.


I fixed a bug where it couldent delete mac os9's hidden files but now it works.
« Last Edit: July 13, 2010, 11:10:33 AM by Zero »
Logged

Offline AlexP

  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Cleanup after sandisk and mac
« Reply #1 on: July 11, 2010, 08:28:18 AM »
Thanks, but static information really belongs on the wiki.  It will get lost on the forums.  Also, real words please - "you" not "u" etc.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: Cleanup after sandisk and mac
« Reply #2 on: July 11, 2010, 10:37:43 AM »
Hint: you can rewrite it in LUA and run the script directly from the player
Logged
a wise man said: "a wise man said"

Offline Zero

  • Member
  • *
  • Posts: 5
  • Absol-ute Best firmware
Re: Cleanup after sandisk and mac
« Reply #3 on: July 11, 2010, 04:23:06 PM »
Um lua i am not firmilure with it. but that would be even better. could anyone tell me  where to learn it? if someone who nows it could rebuild it in lua and poast
« Last Edit: July 11, 2010, 04:27:42 PM by Zero »
Logged

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: Cleanup after sandisk and mac
« Reply #4 on: July 11, 2010, 05:25:01 PM »
http://lua-users.org/wiki/LuaTutorial should be a good starting point to learn

Also I just thought that the mac files (only some?) should be deleted by the disktidy plugin already.
Logged
a wise man said: "a wise man said"

Offline Zero

  • Member
  • *
  • Posts: 5
  • Absol-ute Best firmware
Re: Cleanup after sandisk and mac
« Reply #5 on: July 12, 2010, 01:35:58 AM »
from what ive seen it is a difficult process to do because i have no idea what i am doing i only know windows batch processing :-[
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Cleanup after sandisk and mac
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.233 seconds with 21 queries.