Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect SSD drive
Message
De
26/12/2017 19:34:44
 
 
À
26/12/2017 09:40:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01656676
Message ID:
01656743
Vues:
53
Ok.. not knowing about your environment is hard to tell,
but after reading Doman's comment.. makes sense if you are using
a vm... other than that.. I've found that detecting ssd seems to be
something that you can achieve for sure only by getting the hd model
and looking for it using some kind of service.

If your concern is HDD performance, you can query "Win32_PerfRawData_PerfDisk_LogicalDisk"
I included it on the sample, and called the object "hdperftest" ( it's commented ) or simply do:

oHDPerformance=wmiquery('Win32_PerfRawData_PerfDisk_LogicalDisk')

to get ( attached image ) performance test for all your logical disks.

( tests can take time 5-10 secs depending of your system ; no message will be shown while wmi query runs )

Marco
@nfoxdev
github.com/nfoxdev
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform