How to assign icon to a batch file?

  • Thread starter Thread starter kj
  • Start date Start date
K

kj

I have written a simple batch file, xwin.bat, that sets up a few
parameters and then uses "run" to execute another program (Xwin.exe).
I have installed a shortcut to xwin.bat in my Quick Launch toolbar
and it works great. The only problem is that its icon in the QL
toolbar looks totally nondescript (in fact I already have one other
batch file installed on the QL toolbar that has the exact same
icon, even though it does something totally unrelated).

Xwin.exe, on the other has a pretty distinctive icon. How can I
assign this icon to xwin.bat?

I anticipate that there's a lot of commercial software to do this,
but since this is a 1-shot deal, I'd prefer to use a free tool if
possible.

Thanks!

kj
 
Right-click, Properties|Shortcut|Change Icon

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|
|
|
| I have written a simple batch file, xwin.bat, that sets up a few
| parameters and then uses "run" to execute another program (Xwin.exe).
| I have installed a shortcut to xwin.bat in my Quick Launch toolbar
| and it works great. The only problem is that its icon in the QL
| toolbar looks totally nondescript (in fact I already have one other
| batch file installed on the QL toolbar that has the exact same
| icon, even though it does something totally unrelated).
|
| Xwin.exe, on the other has a pretty distinctive icon. How can I
| assign this icon to xwin.bat?
|
| I anticipate that there's a lot of commercial software to do this,
| but since this is a 1-shot deal, I'd prefer to use a free tool if
| possible.
|
| Thanks!
|
| kj
|
| --
| NOTE: In my address everything before the first period is backwards;
| and the last period, and everything after it, should be discarded.
 
In said:
Right-click, Properties|Shortcut|Change Icon

Thanks, but when I tried that, a dialog came up saying

The file C:\blah-blah-blah\xwin.bat contains no icons.
Choose an icon from the list of specify a different file.

What list is this dialog referring to? I couldn't see any.

kj
 
Browse to;
C:\blah-blah-blah\Xwin.exe

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Thanks, but when I tried that, a dialog came up saying
|
| The file C:\blah-blah-blah\xwin.bat contains no icons.
| Choose an icon from the list of specify a different file.
|
| What list is this dialog referring to? I couldn't see any.
|
| kj
|
| --
| NOTE: In my address everything before the first period is backwards;
| and the last period, and everything after it, should be discarded.
 
kj said:
In <[email protected]> "Dave Patrick"

Thanks, but when I tried that, a dialog came up saying

The file C:\blah-blah-blah\xwin.bat contains no icons.
Choose an icon from the list of specify a different file.

What list is this dialog referring to? I couldn't see any.

kj
discarded.


When I get the same thing (W2kSP4) clicking on the 'ok' opens a
display of the icons in %SystemRoot%\system32\SHELL32.dll and an
icon can be selected.

Ray
 

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

Back
Top