(imported topic written by Kenz91)
Title kind of says it all. Is there a way to tell if a D Drive exists and if it does is it a HD or optical? Would appreciate any help. Thanks
(imported topic written by Kenz91)
Title kind of says it all. Is there a way to tell if a D Drive exists and if it does is it a HD or optical? Would appreciate any help. Thanks
(imported comment written by SystemAdmin)
integer value of selects “DriveType from Win32_LogicalDisk Where DeviceID=‘D:’” of wmi
if the value returned is 3, is a HD; 5 is a Compact Disc
Reference : http://msdn.microsoft.com/en-us/library/windows/desktop/aa394173(v=vs.85).aspx
(imported comment written by jeremylam)
q: properties of type "drive"
A: name of <drive>: string
A: numeric type of <drive>: integer
A: type of <drive>: string
A: free space of <drive>: integer
A: total space of <drive>: integer
A: root folder of <drive>: folder
A: folder <string> of <drive>: folder
A: fs_case_is_preserved of <drive>: boolean
A: fs_case_sensitive of <drive>: boolean
A: fs_unicode_stored_on_disk of <drive>: boolean
A: fs_persistent_acls of <drive>: boolean
A: fs_vol_is_compressed of <drive>: boolean
A: fs_file_compression of <drive>: boolean
A: file_supports_encryption of <drive>: boolean
A: file_supports_object_ids of <drive>: boolean
A: file_supports_reparse_points of <drive>: boolean
A: file_supports_sparse_files of <drive>: boolean
A: file_volume_quotas of <drive>: boolean
A: file system type of <drive>: string
I: plural property
q: (name of it, type of it) of drives
A: C:, DRIVE_FIXED
A: D:, DRIVE_CDROM
A: E:, DRIVE_FIXED
I: plural ( string, string )
q: type of drive "D:" | "drive D does not exist"
A: DRIVE_CDROM
I: singular string