1. Windows programs

Hello,
Does any one know how to find out if an .exe is a
program and if it is get its current icon.
Thanks!
--PatRat (Thomas Parslow)
--               ()___()
--                (o o)
--                =\O/=
--           RAT OF THE MONTH
--             Competition

new topic     » topic index » view message » categorize

2. Re: Windows programs

On Tue, 30 Sep 1997, PatRat wrote:

> Does any one know how to find out if an .exe is a
> program and if it is get its current icon.
> Thanks!

You could open the file, read in the first kilobyte, ans search it for the
message "This program requires Microsoft Windows", or Win95 version
whatever that is ("This program will not run in DOS mode" ??).

If you mean *any* .exe file, check the first two bytes.
If they're "MZ" it's probably an .exe. Some boot files can start with
"'theta' t" (I can't remember the DOSCII code for greek theta, sorry.
It looks like an O with a hyphen across it).
This applies to both Windows and DOS.

As for finding the icon, I'm not that "au fait" (sp?) with Windows .exe
formats. I'll have to leave that to someone else.

--
Carl R White   | e-mail...:                    crwhite- at -comp.brad.ac.uk
               | finger...:             crwhite- at -dcsun1.comp.brad.ac.uk
               | web......: http://www.student.comp.brad.ac.uk/~crwhite/
Anti-Spam: Remove x's from header and change '- at -' to '@' in .sig

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu