Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To detect drives
Message
De
16/07/2001 04:44:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/07/2001 04:35:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00530884
Message ID:
00530886
Vues:
13
>hello! im new member and i'm just a novice user of Visual FoxPro.
>
>my question is how will i identify that a disk in drive present or not. can u give me the code on ho to detect drives?
>
>jay

Jay,
Welcome. You can try this one :
? IsReadyDrive('a')

function IsReadyDrive
Lparameters tcDriveName
oFS = CREATEOBJECT('Scripting.FileSystemObject')
For each oDrv in oFS.Drives
  If oDrv.DriveLetter = upper(tcDriveName)
    Return oDrv.IsReady
  Endif
Endfor
Return .F.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform