Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Store Folder Name in File
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00743025
Message ID:
00743028
Vues:
14
>I have 500+ folders and I need to go to each folder to find out how many subfolders are under the main folder and store the subfolder names to a file. I cannot use DOS RUN comment. Can anyone give me some direction what I can do to pull all the information together.

Hi Tai.
SET DEFAULT TO lcSomeFolder
lnNumberOfSubfolders  = ADIR(laDirs,'*.',"D",0)
lcFolderNames = ""
FOR i = 1 TO lnNumberOfSubfolders
	lcFolderNames = lcFolderNames + laDirs(i,1) + CHR(10)
ENDFOR
STRTOFILE(lcFolderNames,"TaisFile.txt",0)
Repeat this in a loop for each of your 500 folders.

P.S. Why can't you use the DOS RUN command?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform