You have to recursively traverse the directories using something like...(in Java)
void indexDocs(String file){ if (file.isDirectory()) { // if a directory String[] files = file.list(); // list its files for (int i = 0; i < files.length; i++) // recursively index them indexDocs(new File(file, files[i])); } .... } -- Rajesh Munavalli On 1/31/06, Azlan Abdul Latiff <[EMAIL PROTECTED]> wrote: > > how can I index the whole hard drive? I tried using "c:/" but it didnt > work. > > The results only return c:/ directory where as a I want it to index all > the sub folders as well as the the other directories. > > Azlan > > > ---------------------------------------------------------------- > This e-mail has been sent via JARING webmail at http://www.jaring.my > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >