How to assign icon for batch file

R

robert.dodier

Hello all,

Sorry for what must be a FAQ. I've searched the web and newsgroups
for this topic but I can't find anything to specifically address my
problem
in the 100's of links that I found.

I have created a .bat file which I'm including in a zip file.
The default icon for .bat files is pretty ugly, so I'd like
to replace it with something else. How can I change the icon?
I want to change the icon before I create the zip file, so that
anyone who unpacks it will see the new icon.

Thanks for any information,

Robert Dodier
 
W

Wesley Vogel

Create a shortcut to the .bat file.
Right click the shortcut | Shortcut tab | Change Icon button

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
R

robert.dodier

Wesley said:
Create a shortcut to the .bat file.
Right click the shortcut | Shortcut tab | Change Icon button

Hi Wesley, thanks for your help. When I do that, I find that
the absolute path for the batch file is embedded in the shortcut.
So if that were packaged into a zip file, it wouldn't work when
unpackaed unless it were unpacked into the same location,
which I don't want to require.

Is there a way to make a relative path in a shortcut?

Thanks again for your help,
Robert Dodier
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top