Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: motorollin on May 21, 2006, 04:58:38 PM

Title: Copy an icon to all drawers in a path?
Post by: motorollin on May 21, 2006, 04:58:38 PM
I want to copy a drawer icon to all drawers in a specified path. For example:

1.>COPY ENVARC:Sys/def_drawer.info Games:folders/#?.info

I know this won't work, as a wildcard can't be used as the destination in a copy command. Is there an easy way to do this?

--
moto
Title: Re: Copy an icon to all drawers in a path?
Post by: Tricky on May 21, 2006, 05:01:23 PM
There is a command that comes with NewIcons that adds icons to the specified list of files.  I'd expect it to understand wildcards, but not sure if that's much use for drawers.
Title: Re: Copy an icon to all drawers in a path?
Post by: motorollin on May 21, 2006, 05:33:28 PM
The drawers are the only objects in the location to which the icons need to be copied, so if the command will accept wildcards then I should be able to use #?. I'll give it a try. Thanks!

--
moto
Title: Re: Copy an icon to all drawers in a path?
Post by: Piru on May 21, 2006, 05:58:28 PM
1.> list Games:folders/ DIRS LFORMAT="COPY ENVARC:Sys/def_drawer.info %p%n.info" TO T:script
1.> execute T:script