0

I often have the need to store a certain file version in a non-exe file, just the way I give a file version to an .exe, for example "1.0.392"

However, I have not found a way to do that for non-exe-files (such as .db files, etc.)

Is there are way to do that in a simple way?

Thank you!

tmighty
  • 10,734
  • 21
  • 104
  • 218
  • Depends on the file type. Some file types already have an inherent version number. Is this a custom file format? – Reticulated Spline Jan 27 '15 at 00:10
  • I don't know what you mean by "custom format". Is there any definition for "custom format"? – tmighty Jan 27 '15 at 00:14
  • EXEs and DLLs have a formalized resource area (pointed to by a field in their headers, when present) in which a designated version resource structure can reside. Unfortunately for you, this is not a concept that is implemented for general files. – 500 - Internal Server Error Jan 27 '15 at 00:27
  • The format of a file refers to the type of information stored in a file, and the way it's structured. A custom format is a file format created by you for use in your specific application. In contrast, a known format is a well-known documented format for storing a certain kind of information, such as PDF for document storage. – Crippledsmurf Jan 27 '15 at 00:30
  • Your question is extremely vague. What kind of file is the *certain file* you're wanting to store this information in? Windows has support for VERSIONINFO in any binary file that supports them, MS Office documents have support for internal resources where you can do things like this, while other types do not. WIthout more information on what your *certain file* is, this question is pretty much unanswerable. The only possible answer would be *Possibly, depending on the type of file*, which will benefit neither you or any future reader here. – Ken White Jan 27 '15 at 00:30

0 Answers0