I\'d like to know what\'s the way to actually set the icon of a .bat
file to an arbitrary icon.
How would I go about doing that programmatically, independently of t
You could use a Bat to Exe
converter from here:
http://www.f2ko.de/en/b2e.php
This will convert your batch file to an executable, then you can set the icon for the converted file.
Try BatToExe converter. It will convert your batch file to an executable, and allow you to set an icon for it.
Assuming you're referring to MS-DOS batch files: as it is simply a text file with a special extension, a .bat
file doesn't store an icon of its own.
You can, however, create a shortcut in the .lnk
format that stores an icon.
One of the way you can achieve this is:
Now your java program can be opened in a fancy way just like any other MSWindows apps.! :)