Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading Disk Serial Number of NTFS drive
Message
De
31/12/1999 07:54:58
 
 
À
31/12/1999 05:20:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00310850
Message ID:
00310864
Vues:
28
>I need to read Disk Serial Number or some other unique
>number of a NTFS disk for copy protection. It is allowed
>that this number may change when disk is re-formatted or
>re-created.
>
>However, it seems that Get Volume Information API call
>will not return such information for NTSF disks.
>
>Is it possible to get this for NTFS disks ?

It's trivial - use the Scripting.FileSystemObject from the Windows Script Host, open a drive object and examine the serial number.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform