Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOLDER does not exist
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00888629
Message ID:
00888633
Vues:
9
>If a folder, such as \TEMP, hanging off of another folder, such as C:\PATIENTS did not exist, how would I determine that it does not exist. Maybe a combination of CURDIR() or SYS(2003) with something else? There does not seem to be anything that checks for a specific folder, so I suppose I'd have to do some string evaluating? The following is Pseudo code only.
>
>
>IF NOT FOLDER("C:\PATIENTS\TEMP")
>   CD C:\PATIENTS
>   MD TEMP
>ENDIF
>
>
>Or in rela VFP code,...
>
>CD C:\PATIENTS
>IF CURDIR() <> "C:\PATIENTS\TEMP"
>   MD TEMP
>ENDIF
>
Use the DIRECTORY() function.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform