Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the CD drive letter

Status
Not open for further replies.

vfpshe

Programmer
Jan 2, 2001
24
0
0
US
Hello,

I need help in getting the CD-ROM drive letter assignment from a local machine. Is there a command that does this?

Will really appreciate ur input..
Thanks.
 
In the FoxTools.fll there is a function called DriveType()

SET LIBRARY TO FOXTOOLS.FLL ADDITIVE
nType1 = DRIVETYPE(C)
nType2 = DRIVETYPE(D)
nType3 = DRIVETYPE(E)
nType4 = DRIVETYPE(F)

For a CD-ROM the nType would equal = 5

0 No type
2 Floppy disk
3 Hard disk
4 Removable drive or network drive
5 CD-ROM
6 RAM disk(1)


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top