Re: Volume id

2007-11-16 Thread Dieter Verfaillie
On Thu, 2007-11-15 at 17:05 +0100, Gabor Urban wrote: > OK, you are right... Problem was not precise enough. I need to process > CDs to create a list. Does it ring a bell for you? > > Thanks Hello, The method below will work on linux systems (it uses dbus to communicate with HAL). You'll maybe h

Re: Volume id

2007-11-15 Thread Tim Golden
Gabor Urban wrote: > OK, you are right... Problem was not precise enough. I need to process CDs > to create a list. Does it ring a bell for you? On Windows, at least, you can do this with WMI: import win32com.client wmi = win32com.client.GetObject ("winmgmts:") for result in wmi.ExecQuery (

Re: Volume id

2007-11-15 Thread kyosohma
On Nov 15, 10:21 am, Tim Golden <[EMAIL PROTECTED]> wrote: > Gabor Urban wrote: > > OK, you are right... Problem was not precise enough. I need to process CDs > > to create a list. Does it ring a bell for you? > > On Windows, at least, you can do this with WMI: > > > import win32com.client > > wmi

Re: Volume id

2007-11-15 Thread Gabor Urban
not find an answer. > > > > I have to write a Python script, which does a directory tree walking > > on given mounted disk. But I do need to extract the volume id, > > somehow. And that's the problem. An additional issue, the script will > > be used on unix t

Re: Volume id

2007-11-15 Thread Laszlo Nagy
Gabor Urban wrote: > Hi, > > I have a problem, which may be trivial, but I could not find an answer. > > I have to write a Python script, which does a directory tree walking > on given mounted disk. But I do need to extract the volume id, > somehow. And that's the pro

Volume id

2007-11-15 Thread Gabor Urban
Hi, I have a problem, which may be trivial, but I could not find an answer. I have to write a Python script, which does a directory tree walking on given mounted disk. But I do need to extract the volume id, somehow. And that's the problem. An additional issue, the script will be used on