I am working on a vb.net project in which I need to disaply the file version of certain application components. For example I need to display to the end user what file version of the dll, ocx, and exe they currently have installed. For example if I have a dll named sample.dll, I would want to pull back something like 1.0 1011 (1.0 being the version and 1011 being the build number).
I know the directory and the files that I need to collect this data from. How can I assign a varabile the value of the file version for these? If there an api call of some kind that I can use to get this information. The operting system is windows xp/windows 2003 server.
Can anyone help me with this?