How to find if a file is an exe in C# ?

Posted by Praveen on Stack Overflow See other posts from Stack Overflow or by Praveen
Published on 2010-05-19T07:46:42Z Indexed on 2010/05/19 7:50 UTC
Read the original article Hit count: 170

Filed under:

Hi All,

How can I be sure that a file passed to my program is a valid exe file ?

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.

Thanks in advance for any guidance...

© Stack Overflow or respective owner

Related posts about c#