Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to Assign a WinBatch Program an Icon

Keywords:    icon

Question:

Is there a way to assign a program an icon? I know how to add icons but I want to associate a .ICO file to a shortcut. The thing is though that it has to work in NT, 95, WFW any ideas?

Answer:

I'm not sure what the problem is. There are no "shortcuts" per say in WFW.

In WFW and NT 3.51 you can drag a WBT file onto program manager and Voila, a new icon that runs the wbt file. You can use PROGMAN.WIL in your WinBatch Samples directory to add icons to Program Manager programatically.

In Win95 and NT 4.0 you can drag WBT files to the start button. You can use the various SHORTCUTxxx functions. You can make it with ShortCutMake and change the icon with ShortCutExtra.

Question (continued):

I *know* how to create an Icon in WFW,NT,95,etc. It's just that we need to use our own ICO file. You know what I mean? Our own little picture.

Let me know if this clears it up a little. Thanks again.

Answer:

Are you talking Compiled script? And you need to make your own icon? Get an Icon Drawing tool. Just make the 32x32 icon so that the file is less than or equal to 766 bytes.
Article ID:   W13257
Filename:   Assign a WinBatch Program an Icon.txt