How to get file signature, files type (*.exe, *.js, *.msi, *.ocx, *.sys, *.vbs)?
I am developing tool to make signature test be easy, already i succeeded to pull out signature开发者_开发百科 from dll files using .net C# reflection. i want to know if the reflection in C# will help me to get signature from the below list, files type :(*.exe, *.js, *.msi, *.ocx, *.sys, *.vbs).
if not, then how can i get the signature (from list above)?
Reflection can only be used to reflect over .NET assemblies (dll and exe that are .NET assemblies).
You cannot reflect over other types.
What do you mean by getting the signature
from a file?
Using below :
string copyright = FileVersionInfo.GetVersionInfo(path).LegalCopyright;
will get the copyright from all the wanted files.
精彩评论