Short: V1.3 of the shell command to copy icons Author: sebauer@t-online.de (Sebastian Bauer) Uploader: sebauer@t-online.de (Sebastian Bauer) Version: 1.3 Type: util/cli Requires: OS 2.0 Kurz: V1.3 des Shell Befehls zum Iconkopieren IconCopy is a small and simple shell command to copy an icon image from a source to a destination. No tooltypes will be overwritten if there is already an icon at the destination. If it is not started on a OS 3.5 system it uses the newicon.library if available. I wrote it because I needed something like this for the Installation Script of SimpleFind. The installer itself cannot do this at this moment (I think) and so IconCopy was born. Feel free to use and spread it. Usage ~~~~~ Since IconCopy is a shell command it can not be started from Workbench ;-) (but if you do it anywhy IconCopy will do nothing) and so only a shell template exists: SOURCE/A,DEST/A,CHECK/S,UPDATE/S,CONVERTNEWICON/S SOURCE/A The source icon (without ".info") DEST/A The destination (without ".info") If there is already an icon, only the image is copied otherwise the complete icon is copied. CHECK/S If the icon with the DEST name the icon is not copied. UPDATE/S If dest icon exists, the tooltypes of the source icon, which don't exist on in the dest icon are also copied, but marked as deactivated (via the '()' pair). CONVERTNEWICON/S If the user has OS3.5 installed every NewIcon which is copied by IconCopy is converted to the OS3.5 icon format. Example ~~~~~~~ IconCopy SYS:Prefs RAM:Test (copies the SYS:Prefs icon to RAM:Test) For a more complete example, look into the installation script for SimpleFind3 History ~~~~~~~ Version 1.3 (31.10.99) - added CONVERTNEWICON/S argument Version 1.2 (20.10.99) - supports the new icon.library version 44 API Version 1.1 (02.01.99) - added UPDATE/S Argument (suggested by Nils Görs) - forgot to close the newicon.library Version 1.0 (23.11.98) - first public release Future ~~~~~~ Enough for my needs...but I'm open for suggestions (however I think there is room for many improvments) Notes ~~~~~ Since probably no normal person will install this command on his/her system you must include it, if your installation script use this command. However it's enough to include the binary only. Visit my homepage http://home.t-online.de/home/sebauer/ (german version) http://home.t-online.de/home/sebauer/english.html (english version) Here you can find the latest version of my other programs SimpleFind, SimpleHTML, SimplePac and of course IconCopy. __ / / __ / / Only Amiga makes it possible... \ \/ / \__/ ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 632 278 56.0% 31-Oct-99 16:34:34 IconCopy.info 2372 1647 30.5% 31-Oct-99 15:04:24 +IconCopy 2664 1291 51.5% 31-Oct-99 15:11:14 +ReadMe 831 306 63.1% 31-Oct-99 15:11:14 +ReadMe.info -------- ------- ----- --------- -------- 6499 3522 45.8% 01-Nov-99 00:10:42 4 files