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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sp to count files inside x number of dir's inside one dir??

Status
Not open for further replies.

NickyJay

Programmer
Sep 1, 2003
217
0
0
GB
Hi all, hope this is the right forum, if not, please redirect me!

I want to be able to count the number of files inside 40 folders in one main dir. Is this possible using a sp?? how?

Manys thanks
Nicola :0)
 
What version you using? Try looking up xp_dirtree in BOL. You might be able to work it out from there.....

HTH,

M
 
xp_dirtree isn't in BOL. Information about it is available here
Denny
MVP
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / SQL 2008 Implementation and Maintenance / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration)
MCITP Database Admin (SQL 2005/2008) / Database Dev (SQL 2005)

My Blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top