23 October 2003, 01:34 | #1 |
Moderator
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
|
Old icon killer.................
Anyone know of an app that will recursively kill oldicon images in newicons, replacing them with a dot so they don’t take up space?
I’ve been using “killoldicons” but it only allows one directory to be cleared at a time. I have an icons directory with LOADS of newicons that I want to “dotify” with ease in order to reduce their size. |
23 October 2003, 10:22 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,024
|
What about
list >ram:script work:icons all p=#?.info lformat="killoldicon *"%p%m*"" execute ram:script |
23 October 2003, 12:39 | #3 |
Moderator
Join Date: Jun 2001
Location: I'm behind you!
Posts: 3,763
|
Thomas, you legend!
That worked a treat. Made it into an executable script for future use - thanks! |
23 October 2003, 16:46 | #4 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,646
|
Wow, that was a super ninja line of AmigaDOS skr1p7 k0de !
I never understood that list lformat stuff, can you explain a bit what you wrote thomas? |
24 October 2003, 11:29 | #5 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,024
|
Ninja ? This was nothing. Normal doing. Every-day usage.
With the List command you list the directory. Each directory entry gives one line. The lformat string gives the line format. The %-tokens are replaced by the corresponding values. The formatting is done like that of the printf() function of the C language. Special characters must be escaped in BCPL style (the BCPL escape character is * as opposed to \ in C). These are the tokens: %s = old style, do not use. Each %s gives either path or file name (alternating). If more than one %s is there, it begins with path. If the number is unequal, the last %s is file name. (e.g. "%s%s %s" gives "path/file file") well-known tokens: %p = Path (as specified in command line) %n = File name %m = File name without extension %c = File comment %l = File size (memory hook: l = length) %d = Date %t = Time %a = Protection bits not-so-well-known: %e = File name extension %f = Full path these must be new for OS3.9, at least I did not know them: %b = Block number ? %k = Key number ? %g = Group (for multi user file systems) %u = User (for multi user file systems) %v = Group+User protection bits Some examples for escaped special characters: *" = Quotation mark ** = Asterisk *n = New line *r = Carriage return *t = Tab *e = Esc *e[ = CSI (Command Sequence Intruducer) The default lformat is "%-30n %7l %a %d %t" or, if a comment is present: lformat="%-30n %7l %a %d %t*n: %c" This is well documented in the DOS manual which is available in HTML format on the OS3.9 CD. |
24 October 2003, 17:04 | #6 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,646
|
That's why I never knew shit, my 2.05 manuals never came with that information. And I never got the special AmigaDOS manual (which I really really wanted, but never managed to get)
Thanks for the info!!! |
24 October 2003, 18:15 | #7 |
Junior Member
Join Date: Aug 2001
Location: France
Posts: 1,385
|
I used AmigaDos online Reference in the past. Maybe it could help someone.
|
25 October 2003, 22:17 | #8 |
Zone Friend
|
Even though not that detailedly described (thanks Thomas!), the LIST lformat... stuff was pretty well explained in my AmigaDOS 1.3 manual.
(note this is NOT explained in AmigaDOS 1.2 manual, which came with earlier A500s! LIST lformat is supported in WB 1.3 or higher only.) |
25 October 2003, 23:53 | #9 | |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,024
|
Quote:
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Killer power supplies | Quagliarulo | support.Hardware | 27 | 11 April 2011 00:50 |
PNG Icon to Color Icon Converter? | Leandro Jardim | request.Apps | 1 | 24 May 2010 04:39 |
Killer/CNCD and WinUAE | Unregistered | support.Demos | 10 | 25 October 2008 21:56 |
A10 Tank Killer | DDNI | support.Games | 0 | 13 July 2006 03:27 |
A-10 Tank Killer | derSammler | HOL data problems | 3 | 04 October 2004 21:15 |
|
|