@EXETYPE[filename]: Returns the application type as a string:
DOS DOS .COM, .EXE, or .BAT
AVIO OS/2 Character mode, windowed
FS OS/2 Character mode, full-screen
PM OS/2 Presentation Manager
WIN Windows 3
UNKNOWN Any other file