Tony Cappellini wrote:
>>Tim Golden has a way to do just about everything, but this particular
>>snippet has nothing to do with the original question.

def get_unique_id (hFile):
  (
    attributes,

    created_at, accessed_at, written_at,
    volume,
    file_hi, file_lo,
    n_links,
    index_hi, index_lo
  ) = win32file.GetFileInformationByHandle (hFile)
  return volume, index_hi, index_lo

The link I posted certainly has a misleading name, but the code above (from 
that link) returns the volume SN.
Is the fifth item returned from GetFileInformationByHandle() not the Volume SN?

You are quite correct, I apologize.

--
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to