The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by brutel]

Can you get a diskCD-rom volume label etc. with a python module?

I find the book very well written, would like more examples.

Thanks,

Guy Brutel
import-bot (20211) [Avatar] Offline
#2
Re: volume name under dos/windows
[Originally posted by daryl harms]

> Can you get a diskCD-rom volume label etc. with a python module?
>
> I find the book very well written, would like more examples.
>
> Thanks,
>
> Guy Brutel

Hi Guy,

You can get program access to this through Mark Hammond's win32all extensions,
i.e:

>>> import win32api
>>> vInfo = win32api.GetVolumeInformation("y:"smilie
>>> print vInfo[0]
Audio CD

These extensions and more documentation on them can now be found at:
http://starship.python.net/crew/mhammond/win32/Downloads.html


Daryl