Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect if directory exists in NT
Message
De
18/06/1999 10:02:00
 
 
À
18/06/1999 09:56:00
Jack Liebschutz
Black Mountain Software
Polson, Montana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00231349
Message ID:
00231356
Vues:
13
>In DOS/Win3/95/98 I could use the following command:
>
>if file('C:\payroll\nul') to detect if the payroll directory exists. This does not work in NT. Any ideas how to detect if a directory exists in NT? Thanks.
If ADir(ladir, 'C:\Payroll\', 'D') > 0
    * Directory exists
Else
    * Directory does not exist
EndIf
After that, you might want to release ladir if you don't need it anymore.
Sylvain Demers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform