Re: [Python-es] información del disco duro
Catalin Lungu
lcatalin en siadv.com
Mie Abr 20 16:06:43 CEST 2005
Para el tema del serial nada mas sencillo que:
>>> import win32api as api
>>> api.GetVolumeInformation("C:/")
('XP', 548170931, 255, 459007, 'NTFS')
donde la tupla devuelta es:
string - Volume Name
long - Volume serial number.
long - Maximum Component Length of a file name.
long - Sys Flags - other flags specific to the file system. See the api for
details.
string - File System Name
Saludos,
Catalin
Más información sobre la lista de distribución Python-es