
Returns an integer describing the type of EXE file specified.
ExeTypeInfo(exename)
(s) exename the name of the desired .EXE, .COM, .PIF, .BAT file or data file.
(i) integer 0 = not an EXE file. 1 = Old style DOS EXE.
2 = New Style DOS EXE.
3 = Windows EXE.
10 = Windows NT EXE
20 = 64-bit Windows EXE.
Use this function to return an integer describing and identifying the type of EXE file specified.
a=ExeTypeInfo(FileLocate("notepad.exe"))
Switch a
Case 0
b="Not an EXE file"
Break
Case 1
b="Old DOS EXE"
Break
Case 2
b="New DOS EXE"
Break
Case 3
b="Windows EXE"
Break
Case 10
b="Windows NT EXE"
Break
Case 20
b="Windows 64-bit EXE"
Break
Case a
b="Unknown file type, value = %a%"
Break
EndSwitch
Message("File Type", b)