only way I know how to do it is
import os
out = os.popen("dir SomethingThatDoesntExist")
print out
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rickey, Kyle W
Sent: Friday, May 16, 2008 11:36 AM
To: [email protected]
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
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32