[.net] Determine file type
I am looking for way to determine if a certain file is a .NET IL file as opposed to a normal .dll or .exe.
I'm not picky on the language used to achieve this (if there is no way to do it from the command-line).
Any help appreciated.
You might try:
hope this helps
try{Assembly.LoadFile(yourFile);//managed}catch(BadImageFormatException){//not managed}
hope this helps
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement