Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if a folder exists?
Message
De
14/02/2004 12:02:28
 
 
À
14/02/2004 11:40:29
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00877389
Message ID:
00877396
Vues:
10
>Tore,
>
>I'm not sure what it is you are getting at. Can you provide me with an example?
>
>If I use DIRECTORY("C:\MYFOLDER") in the debugger, VFP8 returns .T. because I do have this folder. Next, if I try to create a file named MYFOLDER on the root of drive C: without an extension, Windows complains and wont create it (no surprise here).
>
>Mike

Mike, that is a surprise :) You can create a file with no extention provided it doesnt match another file or folder name. Windows has no problem with that as such. DIRECTORY() will return false if you pass it as the parameter, which is correct behaviour.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform