Gus Vincent Dato wrote: > hi, > > whats the syntax for retrieving file properties? > if you right click on a file then properties then details.. you could see > File Vesion, File Size, etc. > i wanted to get those information. > > thanks. > > > Get your new Email address! > Grab the Email name you've always wanted before someone else does! > http://mail.promotions.yahoo.com/newdomains/aa/
Various APIs are required. Tyler already pointed out the majority of the information. Here's version information: http://msdn.microsoft.com/en-us/library/ms647003.aspx Version information is actually stored inside a special resource type in the DLL/EXE resource table, which requires walking the NE/PE file formats. GetFileVersionInfo() gets at that information by doing all the hard work for you. It does get a bit hairy when you have to start fiddling with LCIDs (Locale IDs) to get at the info. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
