>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?