- Aug
- 2,059
- 83
I was trying to find out if a file was located on an SSD drive.
I can do the following;
...which shows that drive number 0 is an SSD drive.
There is the @DRIVETYPE function, which perhaps could be modified to also indicate if the MediaType is SSD or HDD.
I found an article by Raymond Chen detailing how this can be accomplished using C++, which is beyond my skill set.
If this is not deemed as an addition to TCC, maybe it could be implemented in a plugin.
Joe
I can do the following;
Code:
e:\utils>pshell /s "Get-PhysicalDisk | Format-Table -AutoSize"
Number FriendlyName SerialNumber MediaType CanPool OperationalStatus HealthStatus Usage Size
------ ------------ ------------ --------- ------- ----------------- ------------ ----- ----
1 WDC WD2000FYYZ-01UL1B0 WD-WCC1P0387049 HDD False OK Healthy Auto-Select 1.82 TB
2 WD My Book 25EE WCC7K4XR8V9A HDD False OK Healthy Auto-Select 2.73 TB
0 CT500MX500SSD1 1826E145FFE2 SSD False OK Healthy Auto-Select 465.76 GB
There is the @DRIVETYPE function, which perhaps could be modified to also indicate if the MediaType is SSD or HDD.
I found an article by Raymond Chen detailing how this can be accomplished using C++, which is beyond my skill set.
If this is not deemed as an addition to TCC, maybe it could be implemented in a plugin.
Joe