XPost: alt.comp.os.windows-10   
   From: V@nguard.LH   
      
   Robin Goodfellow wrote:   
      
   > How can we colorize any given running-task icon in the taskbar?   
   >   
   > I open command windows with the "Run" command (not from a shortcut!).   
   > I don't make shortcuts for something that is only three letters. :)   
   >   
   > Some of those are admin windows, but most are user windows.   
   > Each shows up as a "running task" in the taskbar.   
   >   
   > But they all look the same in the running tasks icons in the taskbar.   
   >   
   > Currently I open a red admin command window using the cmda.bat script   
   > (which is appended to the sig below, and which works beautifully).   
   >   
   > But the icon for that red admin command window is indistinguishable from any   
   > other icon in the taskbar for running programs.   
   >   
   > How can I change the color of the cmda.bat running icon in the taskbar?   
      
   The icon shown in the Taskbar is taken from the image resources in the   
   executable file for the program when you run it (a default one is   
   specified, but there could be more than 1 image resource). If you are   
   asking how to make multiple running instances of the program have   
   different images for their taskbar buttons, you can change the icon in   
   the shortcut properties.   
      
   Right-click on a shortcut -> Shortcut tab -> Change icon   
      
   The default is to show you the image resources in the executable file   
   specified for the shortcut to run. Some programs only have 1 image   
   resource, and console-mode (DOS) programs often don't have any, so you   
   pick one. cmd.exe has just 1 image resource, so opening multiple   
   instances has the 1 image used in each taskbar button.   
      
   There are some other files bundled with Windows that provide image   
   resources, like shell32.dll, and moricons.dll. Any file with an image   
   resource (.exe, .dll) can be used to specify the icon source; however,   
   if they for software you install, those image resources disappear when   
   you uninstall that software.   
      
   If you don't like any that are in Windows bundled files, or in   
   executables you installed, you can also find .ico files online. I did   
   that for a weather.com icon since the icon resources in Windows didn't   
   work. While I could try to rely on cached icons (favicon.ico) from a   
   web site, periodially they seem to disappear, probably if you purge all   
   locally cached data when exiting the web browser.   
      
   As I recall, a shortcut cannot point at a .bat file to run it. That's a   
   text file that has to get fed into a command interpreter. The shortcut   
   has to call cmd.exe when then runs the .bat file, as in:   
      
   cmd.exe /c \   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|