title: How can I retrieve a file's details in Windows using the Standard Library for Python 2
body: <p>I need to read the details for a file in Windows so that I can interrogate the file's 'File version' as displayed in the Details tab of the File Properties window.</p>
  
  <p><a href="https://i.stack.imgur.com/wB1Ot.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wB1Ot.png" alt="File Properties Dialog"></a></p>
  
  <p>I haven't found anything in the standard library that makes this very easy to accomplish but figured if I could find the right windows function, I could probably accomplish it using ctypes.</p>
  
  <p>Does anyone have any exemplary code or can they point me to a Windows function that would let me read this info. I took a look a <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa364944(v=vs.85).aspx" rel="nofollow noreferrer">GetFileAttributes</a> already, but that wasn't quite right as far as I could tell.</p>