Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Can't change .bat file icon on taskbar

24 Feb 2013   #1
Harry B

Win 7 32
 
 
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
Can't change .bat file icon on taskbar-image0004.jpg  
Attached Images
Can't change .bat file icon on taskbar-image0002.jpg 
My System SpecsSystem Spec
.
24 Feb 2013   #2
Harry B

Win 7 32
 
 

My God! Google does have the ability to search by image. Apparently, this icon is in grpconv.exe--whatever that is!
My System SpecsSystem Spec
24 Feb 2013   #3
Harry B

Win 7 32
 
 

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

Any ideas?
My System SpecsSystem Spec
.

24 Feb 2013   #4
Kari

Microsoft Community Contributor Award Recipient

 

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 System SpecsSystem Spec
24 Feb 2013   #5
Harry B

Win 7 32
 
 

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 System SpecsSystem Spec
24 Feb 2013   #6
Kari

Microsoft Community Contributor Award Recipient

 

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 System SpecsSystem Spec
24 Feb 2013   #7
Kari

Microsoft Community Contributor Award Recipient

 

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 System SpecsSystem Spec
24 Feb 2013   #8
Harry B

Win 7 32
 
 

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 System SpecsSystem Spec
25 Feb 2013   #9
Kari

Microsoft Community Contributor Award Recipient

 

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 System SpecsSystem Spec
25 Feb 2013   #10
Harry B

Win 7 32
 
 

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 System SpecsSystem Spec
Reply

 Can't change .bat file icon on taskbar




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
File Extension Icon - Change Default Icon
How to Change the Default Icon of a File Extension in Windows 7 This will show you how to change the default icon of any file extension to have a custom icon of your choice instead for it in Windows 7.By default, known file extension types are set to be hidden in Windows 7. You will need to...
Tutorials
All icon change to WMP and all target type change to EXE File
hey guyss..i have problem with my computer....all my icon change to Windows media player and all target type change to EXE File...what should i do.....plzzz... #sorry for my bad english.. Windows 7 Ultimate 32 bit sp1 2 gb ram
General Discussion
Taskbar Icon Change Issue
I am experimenting with different icons for certain apps and functions. However, although the icon in the properties dialogue updates, the icon in the taskbar does not. The only way I know of to see the changed icon is to restart the computer. This is annoying. Is there a way I can...
General Discussion
How do I change the location of icon on taskbar
Hi. Lately I have been cleaning up my desktop in order to make it as minimalistic as possible, and as easy as possible to use. I am almost done, but I would just like to do one more thing, which is move the libraries icon over to the right where the smaller icons are (not sure what they are...
Customization
can we change the network icon in the taskbar ????
hI 2 ALL I wanna ask you if we can change the network icon in the taskbar from what it appear now to that in win xp
Customization
How do i change the library icon on the taskbar?
http://i48.tinypic.com/nv6qyr.png How do i change that i icon? I know that I can change the other icons by making a shortcut on the desktop then right-clicking Properties->Change Icon but it dosent seem to work with the library icon. Is there a way to change it, or am i stuck with the default...
Customization


Our Sites

Site Links

About Us

Find 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 08:05.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App