Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verification of empty CD drive
Message
 
À
22/08/2005 14:14:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01042710
Message ID:
01042716
Vues:
22
One of the solutions:
if ADIR(aa,"d:\*.*") <=0 
  ....
>Hi,
>
>I was wondering if anyone has a simple way of verifying if a CD or DVD drive has media in it. I have code that figures out what drive letters are the CD and/or DVD drives. Next I want to see what is on the media of these drives. If it is empty I want to skip over it. But I can't figure out how to tell if the drive is empty or not other than using 'SET DEFAULT TO d:\' and getting an "invalid path of file name" error if the drive is empty. Any ideas? Thanks!
>
>Tim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform