Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hey ho...
I don't suppose anyone knows of a way to add a Windows-compatible icon to an .exe file for DOS? It'd be nice to be able to distribute software with icons, without having to resort to using .ico files (they baffle anyone with extensions turned off, for one thing, because they end up clicking the icon not the program).
A nice little command line thing would be great, as would details of what to do in a hex editor, or just a chunk of data to include as part of the compiled program...
Cheers, all
- Tim

That is, according to what I know, actually impossible. DOS programs can NOT have icons inside them (in windows).
Though there is some ways by which you can do something pretty similar though:
Either, you can make a 32-bit console program. Bad idea, they only work in win95 and later, from within Windows.
There is a cooler way: redirect the assembly commands in the beginning of a Windows .exe file (with DEBUG for example) to jump into some data field in your program. That makes two programs in one: a Windows and a DOS programs that performs different tasks. Then you can make a program with DOS-interface in DOS and automatic Windows-interface in Windows ... + you get your icon!
I haven't actually tried this, I'll do tomorrow.

If your talking about running a dos program from windows.....right click on the shoutcut to the program and then left click on properties, from there click on the shortcut tab then at the bottom of the window there is an option to change the icon.....changing the icon has nothing to do with the program running.....the path to the program is what runs it.......

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |