How to find if a file is an exe?
<p>How can I be sure that a file passed to my program is a valid exe file ?</p>

<p>actually my program takes a file as input and runs it, but user can input any file so I have to make sure that the input is a valid exe.</p>
