[comp.windows.ms.programmer] HOW TO SCAN EXECUTABLES TO SEE IF THEY ARE WINDOWS APPS...

rdthomps@vela.acs.oakland.edu (Robert D. Thompson) (06/05/91)

Hello People,

	I want to be able to scan a number of directories for 
	windows applications.  This would be similar to what 
	Windows Setup does, only I just want to scan for
	windows applications.

	How can I do this ?

	Do I search for the "WINDOWS STUB" in each *.exe file or what ?

	Any help would be appreciated!

	Thanks...Regards |(8>
---
Robert
rdthomps@vela.acs.oakland.edu

ebergman@isis.cs.du.edu (Eric Bergman-Terrell) (06/05/91)

Quick and dirty:  run your favorite Windows application from MS DOS.  Write
down the error message (... requires MS Windows to run... ) and then search
for that string in an executable.

Don't know if every windows .exe will have this message in it, however.

Terrell

cchapman@msd.gatech.edu (Chuck H. Chapman) (06/06/91)

In <1991Jun5.131719.13467@mnemosyne.cs.du.edu> ebergman@isis.cs.du.edu (Eric Bergman-Terrell) writes:


>Quick and dirty:  run your favorite Windows application from MS DOS.  Write
>down the error message (... requires MS Windows to run... ) and then search
>for that string in an executable.

>Don't know if every windows .exe will have this message in it, however.

Not necessarily.  That string is displayed by the stub when the program is
run under DOS.  Some programs don't use the default stub.  WINVER, for instance,
uses a stub that displays the current version of Windows.

Chuck

--
Charles H. Chapman  (GTRI/MATD)             (404) 528-7588
Georgia Institute of Technology, Atlanta Georgia, 30332
**************************************************************
* Home of the 1990 National Champion Ga. Tech Yellow Jackets *
**************************************************************
uucp:     ...!{allegra,amd,hplabs,ut-ngp}!gatech!msd!cchapman
Internet: cchapman@msd.gatech.edu