Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check if a directory exists?
Message
 
 
À
18/10/2002 19:12:58
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00713114
Message ID:
00713536
Vues:
18
>Hi all:
>
>Is there a command/function that will check for:
>
>1. The existense of a specific directory (e.g. a directory named Upload)
>2. Then if it exists, check and list the names of its subdirectories if any.
>
>Thank you for your valuable suggestions.
            nFdir = ADIR(laFileListDir, AllTrim(LocalDir)+"*.*",'D') && Number of SubDirectories to investigate.
...
                  nFile = ADIR(laFileListP, AllTrim(LocalDir)+laFileListDir [idir,1]+"\*.*") && Process files in each dir
                  For i= 1 to nFile
                     If nFile > 1
...
File Array within Directory Array.

HTH
Edgar L. Bolton, B.S. B.B.A.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform