Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Folder names 1

Status
Not open for further replies.

vfpshe

Programmer
Jan 2, 2001
24
0
0
US
Hello,

Can someone help me figure out how to display a list of folders from a specific directory? What command should I use to get the folder names?

Help will be greatly appreciated.

Thanks.
 
HI

Use the code..
getMyDir=GETDIR()
? getMyDir
Hope this helps you :) ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
thanks ramani,

what i actually need is a list of all the folders in a specific directory. do you have any commands in mind?

 
HI

=ADIR(myDir,"c:\windows\*.","D")
LOCAL nDir
FOR nDir = 1 TO ALEN(myDir,1)
IF myDir(nDir,5)="....D"
? myDir(nDir,1)
ENDIF
ENDFOR

Hope this helps you :) ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
you're a genius ramani!

thanks a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top