Skip to Content
0
Former Member
Jan 07, 2009 at 01:05 PM

Problem wid nested folders.

76 Views

Hi All,

I'm trying to get all folder located on C:\ of server.

..lets say thre are 4 folders in C:\

thn I'm gettng those 4 folder of server..

but i want to do it all folder's name which thse 4 folders are containg on C:\

I'm tryng to use nested looping ,but m getting "null pointer exception" on statement:

rootfolder.listFiles()<i>.listFiles().length ;

using this line m trying to retrieve no of folders which are contained by secondary folder .

I hope m nt being too complicated.

Do any one hv any idea regarding it

hlpful posts will be appriciated.

Thanks n Regards

Khushboo