Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Borislav Borissov
  Where is Borislav Borissov?
 Sofia
 Bulgaria
 Borislav Borissov
 To: ckanhow how
  
 muar
 
 ckanhow how
 Tags
Subject: RE: detech cd-rom drive letter
Thread ID: 78617 Message ID: 78618 # Views: 2 # Ratings: 0
Version: Visual FoxPro 8 Category: Other
Date: Thursday, October 06, 2005 9:50:48 AM         
   


> hi expert
> i want to detect the cd-rom driver letter,eg.cdrom in cmputer a is E:\ and computer b is f:\, so how i know the drive letter is E:\ for computer a and f:\ for computer b.can anyone help me, please provide me the source code.
>
> Tnax for the help
>
> Ckan how
> Thank you



DECLARE INTEGER GetDriveType IN Win32API STRING DriveName
FOR asd = 65 TO 90
    m_tte = CHR(asd)+":\"+CHR(0)
    m_ret = GetDriveType(m_tte)
    DO CASE
       CASE m_ret = 2 && FDD
            **** Flopy Disk  
       CASE m_ret = 3 && HDD
            **** Hard Disk  
       CASE m_ret = 4 && Network drive
            **** Mapped Network drive
       CASE m_ret = 5 && CD-ROM
            **** CD-ROM
    ENDCASE
NEXT


ENTIRE THREAD

detech cd-rom drive letter Posted by ckanhow how @ 10/6/2005 9:05:47 AM
RE: detech cd-rom drive letter Posted by Borislav Borissov @ 10/6/2005 9:50:48 AM
RE: detech cd-rom drive letter Posted by ckanhow how @ 10/6/2005 10:04:10 AM
RE: detech cd-rom drive letter Posted by Paul Brown @ 10/6/2005 9:51:12 AM