473,398 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

hard disk serial

Hi every one
I try to get hard disk serial number
how can i do this ?

-> THANK'S A LOT
Jul 18 '05 #1
2 6196
Hi !

For Windows :

from win32com.client import Dispatch
FSO = Dispatch('Scripting.FileSystemObject')
listDrives = FSO.Drives
for item in listDrives:
try:
print ' '
print 'Lettre du Drive :'+str(item.DriveLetter)
print 'Numéro de série :'+str(item.SerialNumber)
print 'Type de Drive :'+str(item.DriveType)
print 'Type format :'+str(item.FileSystem)
print 'Accès (prêt ?) :'+str(item.IsReady)
print 'Nom du volume :'+str(item.VolumeName)
print 'Nom de partage :'+str(item.ShareName)
print 'Path :'+str(item.Path)
print 'Dossier racine :'+str(item.RootFolder)
print 'Espace disponible:'+str(item.AvailableSpace)
print 'Espace libre :'+str(item.FreeSpace)
print 'Taille totale :'+str(item.TotalSize)
except:
print 'Pb avec ce disque'

--
@-salutations
--
Michel Claveau
mél : http://cerbermail.com/?6J1TthIa8B
site : http://mclaveau.com
Jul 18 '05 #2
THANK'S david !!!!
it's works very well !!

i feel like a student, but sometimes it's good !

<sb***@lexpert-auto.com> a écrit dans le message de news:
c8**********@s1.read.news.oleane.net...
Hi every one
I try to get hard disk serial number
how can i do this ?

-> THANK'S A LOT

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ahmed Essa | last post by:
hiiiiiiiiiii, i have aproblem in System.management namespace which use to get the serial number of hard disk. my problem is that when i run my application on windows2000 server it cause execption...
3
by: Arne Beruldsen | last post by:
How do you read the serial number to a hard drive? Thanks...Arne
3
by: abeer el ashker | last post by:
how can i get serial numper of hard disk using api
14
by: Lauren Wilson | last post by:
Discovered this interesting comment on MSDN: "To programmatically obtain the hard disk's serial number that the manufacturer assigns, use the Windows Management Instrumentation (WMI)...
16
by: Otie | last post by:
Hi, Is there a way for VB5 to determine exactly where on a hard drive a .exe file is stored upon the .exe file's first copying to the hard drive? What I need to know is the exact hard drive...
1
by: alfred | last post by:
Hi How can I determine what the hard disk and or cpu's identification (serial no.) is. thanks Alfred
6
by: Paul Bromley | last post by:
Ok - I have given up on trying to find the active IP address for a given PC. For licensing purposes I need to retrive a unique identifier from the PC that the program is installed on. The Hard disk...
7
by: Adele le Roux | last post by:
Hi All, How can I get the hard disk serial number of a remote computer's C:? The drive will NOT be mapped as a network drive. Thanks, Adele
0
by: preethaAjayan | last post by:
Could anybody please help me with a piece of code to get hard disk's serial number using C#, not volume serial number, actual number that manufactures give to hard disks.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.