Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Icon for your Archos!

Re: Icon for your Archos!

From: <joerch.net_at_web.de>
Date: 2005-01-18

>>That is really cool. Do you know a) if there's a way of automatically creating
the desktop.ini files (using an image, I already have in the dir (of the same name))?
and b) if there is (much) drain on resources having all those different icons for folders?

..........

Hi Mat, I understand... you want have your album covers as icons for every folder...

b) i hadn't tested thizz with many icons, try it out if windows gets soft knees...

a) i'm not a script or whatever guru, but try this batch:

makeico.bat:
..........
@echo off
attrib +S "%1"
cd "%1"
echo [.ShellClassInfo]>desktop.ini
echo ConfirmFileOp=0 >>desktop.ini
echo IconIndex=0 >>desktop.ini
echo IconFile="%1.bmp" >>desktop.ini
attrib +H desktop.ini

.........

the line iconindex is not really neccessary here, only if you want to extract icons from exe or dll files as folder icon.

run it in the directory were myfolder exists with

makeico myfolder

it does:

-change the folder attribute to system
-creates a desktop.ini and fill with constant strings
-add a line with variable string.

make sure there exists an icon-file named myfolder.bmp.

now you must do some for /R stuff to scan the whole drive recursively.

By the way: an good commandline tool is included in xnview (free) its called nconvert.

with

nconvert.exe -quiet -colors 256 -resize 64 64 -rtype linear -out bmp "%1"

you can convert nearly all images to bmp /ico or whatever.

hope that helps a little...

Joerch

__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on Tue Jan 18 12:28:16 2005


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa