Suppose that I have code to iterate on a directory files listing and sort them according to their extensions. I then would like to do further sorting on
exe files in particular.
Windows applications are divided into two types: console applications and desktop applications.
How do I go about sorting directory application files into those two types such that names of console applications are listed under "console applications" and names of desktop applications are listed under "desktop applications".
The real question is: how to identify console applications from desktop applications?
Source: Windows Questions