Write a Function which takes a directory path ("C:\", or C"\Docs") as argument and then scans the directory and get a list of all the subdirectories. Then recursively call the same function for each of the subdirectories found.
this method will do IMO !!
Example Code:
Quote:
Void search(string path)
{
..... use ur code to search for subdirectories.....
and then for each of the subdirectories found .....
search(subdirectory);
.......
....
}
|
-----------------------------------------
Posted again:
-----------------------------------------
Write a Function which takes a directory path ("C:\", or C"\Docs") as argument and then scans the directory and get a list of all the subdirectories. Then recursively call the same function for each of the subdirectories found.
this method will do IMO !!
Example Code:
Quote:
Void search(string path)
{
..... use ur code to search for subdirectories.....
and then for each of the subdirectories found .....
search(subdirectory);
.......
....
}
|