1. Windows programs
- Posted by PatRat <patrat at GEOCITIES.COM> Sep 30, 1997
- 735 views
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
2. Re: Windows programs
- Posted by "Carl R. White" <crwhite at COMP.BRADX.XAC.UK> Oct 01, 1997
- 718 views
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