[python-win32] Volume Serial Number

Tim Roberts timr at probo.com
Fri May 16 19:34:28 CEST 2008

Dahlstrom, Roger wrote:
> only way I know how to do it is
> import os
> out = os.popen("dir SomethingThatDoesntExist")
> print out

The "vol" command was designed for this purpose:
    out = os.popen("vol")

although GetVolumeInformation is a better way.

Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

More information about the python-win32 mailing list