> Hi,
> 
> I have to list the files on a particular folder on a network drive. My
> code is:
> 
> File f = new File("\\\\host_ip_address\\folder1\\folder2");
> File files[] = f.listFiles(); 
> System.out.println("===========>>>Files are: " + files);
> 
> The same code works from a standlone java program but not from a JSP.
> Even from a JSP if I start Tomcat from command prompt using
> startup.bat it works fine but not when I start it as a service.
> 
> Any ideas? 
> 
> Thanks
> 
> Dheeraj
> 

Reply via email to