how to programmatically check version of an exe / dll file?

theGlove

Senior member
Jan 13, 2005
884
0
0
is there a way to check a version of a file programmatically? I would like to write a program or script to audit a system to make sure the dll and exe file versions are correct.
thanks