Determining the volume ID for a file/drive?

Alex Martelli aleax at aleax.it
Tue Apr 29 15:45:03 CEST 2003


Alex Martelli wrote:
   ...
> Quick and dirty...:
> 
> import os
> x = os.popen('C:\\')

OOPS -- TOO quick -- sorry, I meant os.popen('DIR C:\\')!!!


Alex





More information about the Python-list mailing list