Computing.Net > Forums > Disk Operating System > Adding an icon to an MS-DOS program

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Adding an icon to an MS-DOS program

Reply to Message Icon

Name: Tim the Furnish
Date: August 10, 1999 at 07:01:52 Pacific
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: Jakob Berglund
Date: August 10, 1999 at 09:20:15 Pacific
Reply:

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.


0

Response Number 2
Name: sandman6
Date: August 13, 1999 at 16:56:25 Pacific
Reply:

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.......


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Adding an icon to an MS-DOS program

How to speed up a ms-dos program... www.computing.net/answers/dos/how-to-speed-up-a-msdos-program/14273.html

CREATE AN MS-DOS BOOT PARTITION www.computing.net/answers/dos/create-an-msdos-boot-partition/5912.html

How do I create an MS-DOS boot part www.computing.net/answers/dos/how-do-i-create-an-msdos-boot-part/9186.html