如何判断某个驱动器是光驱(100分)

S

sdutsyt

Unregistered / Unconfirmed
GUEST, unregistred user!
請問如何哪一個驅動器時光驅?謝謝
 
GetDriverType()
返回值 含义
0 The drive type cannot be determined.
1 The root directorydo
es not exist.
DRIVE_REMOVABLE The drive can be removed from the drive.
DRIVE_FIXED The disk cannot be removed from the drive.
DRIVE_REMOTE The drive is a remote (network) drive.
DRIVE_CDROM The drive is a CD-ROM drive.
DRIVE_RAMDISK The drive is a RAM disk.
如GetDriverType('c:/');
 
多谢了!yangkee,你的回答我很满意!我找这个问题已经很长时间了。
 

Similar threads

回复
0
查看
653
不得闲
D
回复
0
查看
673
DelphiTeacher的专栏
D
D
回复
0
查看
685
DelphiTeacher的专栏
D
D
回复
0
查看
701
DelphiTeacher的专栏
D
顶部