Can't change .bat file icon on taskbar

Page 1 of 4 123 ... LastLast

  1. Posts : 20
    Win 7 32
       #1

    Can't change .bat file icon on taskbar


    I have Googled a lot, but found no answer: when I launch a .bat file to run a 16 bit DOS-based program (XyWrite) on my 32 bit Win 7, I see on the taskbar the blue and white icon that is attached here (bottom image). I have a yellow custom icon that I want to use, and I have Resource Hacker and AdSevenIconChanger to make the substitution, but to use them, I need to find the Win7-supplied icon that's to be replaced. But I can't find it. It's not in imageres or shell32.

    I also have an .exe version of the shortcut, which also results in the same unlocateable blue-and-white icon. I use a .bat file to launch XyWrite because that at least allows me to get the right icon on the desktop and in Quick Launch--per screen shot below.

    Maybe I could determine the mystery icon's location by doing something with the icon cache?

    Or, here's a wild thought--is there a way to search the web for an image as such? I mean: could I upload the mystery icon to Google or somewhere and have Google use that image to search Google images?
    Attached Thumbnails Attached Thumbnails Can't change .bat file icon on taskbar-image0002.jpg   Can't change .bat file icon on taskbar-image0004.jpg  
    Last edited by Harry B; 24 Feb 2013 at 15:56. Reason: Add a screen shot
      My Computer


  2. Posts : 20
    Win 7 32
    Thread Starter
       #2

    My God! Google does have the ability to search by image. Apparently, this icon is in grpconv.exe--whatever that is!
      My Computer


  3. Posts : 20
    Win 7 32
    Thread Starter
       #3

    Unfortunately, knowing that it's connected with grpconv.exe doesn't seem to help.

    Any ideas?
      My Computer


  4. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #4

    Easiest way is to create a shortcut for your .bat file and pin that instead. A shortcut let's you change the icon to what you want to.

    Kari
      My Computer


  5. Posts : 20
    Win 7 32
    Thread Starter
       #5

    Kari (and are you the Kari from the XyWrite list?):

    1. I don't see an option to pin when I right click on the desktop shortcut for the .bat file.

    2. My concern is the icon that appears in the taskbar when the program is run (though maybe if I could get the .bat file with the correct icon pinned to the taskbar, it would stay with the right icon when that program was launched).

    3. I was able to drag and drop the .bat file to the Start menu, but when I launch it, I get the grpconvert.exe icon I showed. I even made a toolbar with the yellow .bat file icon and when it launched, it also showed the undesired icon.
      My Computer


  6. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #6

    No, I'm not from XyWrite list :).

    1. I forgot to add the tutorial link. This tutorial will tell you how to pin even a shortcut to Taskbar: Taskbar - Pin or Unpin a Program

    2. See 1., the pinned icon is what you have selected.

    3. See 1. and 2.

    Kari
      My Computer


  7. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #7

    Was typing faster than thinking... Tested, did not work.

    One sip whisky and I got it! This works:
    • Create shortcut to your batch file
    • Open shortcut Properties
    • Edit the Target, change it to:
      Code:
      %windir%\System32\cmd.exe /C "Drive:\Folder\Your batchfile.bat"

    Works now. You can pin the shortcut, and it will show the icon you selected for this shortcut. Even when not pinned it will show your chosen icon when run.

    Kari
      My Computer


  8. Posts : 20
    Win 7 32
    Thread Starter
       #8

    Kari,

    A Finnish namesake is on the XyWrite forum list.

    Anyway, so near, yet so far. Yes. I've got the icon pinned to the taskbar. BUT, it is only a launcher. If I click on it, I get the mystery icon on the taskbar, too. That's not too bad, but if I take the active focus away from the XyWrite program it launched (say, by hitting the Desktop icon), and then click on the pinned yellow icon again, it opens another iteration of XyWrite rather than switching the active focus back to the one opened before.

    I might be able to use AutoHotkey to make a macro to only shift the active focus when I hit that button, but that would be a struggle.

    Any better idea?
      My Computer


  9. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #9

    Say hello to Kari!

    Been testing this a bit more.

    OK, shortcut works and can be pinned. When launched, it really causes the batch file icon to stay on Taskbar apparently because the batch itself is not closed until the apps it launches are closed.

    I seem not to be able to find a solution for this. A workaround, yes: The second icon, batch icon, can be manually dismissed by simply closing the command prompt windows it belongs to. The apps it launched will still remain open.

    Could you please post your batch file here, I will have a look and try to find a working solution for you.

    Kari
      My Computer


  10. Posts : 20
    Win 7 32
    Thread Starter
       #10

    I don't think the batch file is open. The two relevant icons are the yellow (desired) one, which is pinned and serves only as a launcher of the batch file, and the grpconv.exe icon, which is the icon showing for the instance of the program that is running. With the program running and the 2 icons on the taskbar, I killed the cmd.exe process in Task Manager, but there was no change in the icons on the taskbar.

    The .bat file is nothing but:

    @echo off
    c:\db\xy\Editor.exe

    Incidentally, in the path, "db" is an alias to Dropbox, if that matters.
      My Computer


 
Page 1 of 4 123 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:44.
Find Us