Link to home
Start Free TrialLog in
Avatar of WeiMx
WeiMx

asked on

File Headers

Hi, i'm trying to write a program to handle some file headers (EXE, COM, TXT, GIF, JPG, BMP), but i can't find information about the header structure of these format, specially i want to get the date, the name, the size and the type of the file (getting all from its header). I'll appreciate your help about anyone of the headers. And i'm sorry for my english :P i hope it be understable.
ASKER CERTIFIED SOLUTION
Avatar of Kocil
Kocil

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nabeen
nabeen

search for ffblk command in header file there u will find all the required information that u can access about the file.
Tons of file information on some websites. One of my favorites http://www.wotsit.org/
check out this page if you are not sure of how to use the _findfirst and _findnext function suggested by kocil and nabeen.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_crt__findnext.2c_._findnexti64.2c_._wfindnext.2c_._wfindnexti64.asp

hope this will help.
Nothing has happened on this question in over 10 months. It's time for cleanup!

My recommendation, which I will post in the Cleanup topic area, is to
split points between Kocil and nabeen.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer