English Amiga Board Amiga Lore


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 23 October 2003, 01:34   #1
Bloodwych
Moderator

Bloodwych's Avatar
 
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.
Bloodwych is offline  
AdSense AdSense  
Old 23 October 2003, 10:22   #2
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,526
What about

list >ram:script work:icons all p=#?.info lformat="killoldicon *"%p%m*""
execute ram:script
thomas is offline  
Old 23 October 2003, 12:39   #3
Bloodwych
Moderator

Bloodwych's Avatar
 
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!
Bloodwych is offline  
Old 23 October 2003, 16:46   #4
Akira
Registered User

Akira's Avatar
 
Join Date: May 2001
Location: New York
Posts: 17,933
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?
Akira is offline  
Old 24 October 2003, 11:29   #5
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,526
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.
thomas is offline  
Old 24 October 2003, 17:04   #6
Akira
Registered User

Akira's Avatar
 
Join Date: May 2001
Location: New York
Posts: 17,933
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!!!
Akira is offline  
Old 24 October 2003, 18:15   #7
Frog
Junior Member

Frog's Avatar
 
Join Date: Aug 2001
Location: France
Posts: 1,263
I used AmigaDos online Reference in the past. Maybe it could help someone.
Frog is offline  
Old 25 October 2003, 22:17   #8
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 43
Posts: 5,858
Send a message via ICQ to andreas Send a message via AIM to andreas
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.)
andreas is offline  
Old 25 October 2003, 23:53   #9
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,526
Quote:
Originally posted by andreas
(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.) [/B]
This is not true. Lformat was present in 1.2 and explained in the DOS manual (at least in mine), but %s was the only token supported back then.
thomas is offline  
AdSense AdSense  
 


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 pcGTW_Webmaster HOL data problems 3 04 October 2004 21:15

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:41.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.19034 seconds with 11 queries