[python-win32] Volume Serial Number

Dahlstrom, Roger rdahlstrom at directedge.com
Fri May 16 18:03:22 CEST 2008


only way I know how to do it is 
 
import os
out = os.popen("dir SomethingThatDoesntExist")
print out

________________________________

From: python-win32-bounces at python.org [mailto:python-win32-bounces at python.org] On Behalf Of Rickey, Kyle W
Sent: Friday, May 16, 2008 11:36 AM
To: python-win32 at python.org
Subject: [python-win32] Volume Serial Number



How do I get the volume serial number for a drive? For example in the cmd prompt issuing this:

 

C:\>vol C:

 Volume in drive C is LABEL

 Volume Serial Number is FFFF-0000

 

Is the volume serial number wrapped by pywin32? I found the function win32api.GetVolumeInformation, but it doesn't seem to return what I want.

 

-Kyle Rickey



DISCLAIMER:
This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and
may contain legally privileged and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and 
any attachments thereto, is strictly prohibited. If you have received this in error, please immediately notify 
me and permanently delete the original and any copy of any e-mail and any printout thereof. 
E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept 
liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission.

NOTICE REGARDING PRIVACY AND CONFIDENTIALITY
Direct Edge ECN LLC may, at its discretion, monitor and review the content of all e-mail communications.

www.directedge.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080516/d4ed497f/attachment-0001.htm>


More information about the python-win32 mailing list