Skip to main content

How to access USB device files and folders by using java

3 replies [Last post]
Joined: 2010-06-06

I want a java code example to access files and folders from USB device. And also I required to find out a drive name of the connected device.

It's urgent............

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2005-11-01

Accessing files and folder on any local device is the same, USB or otherwise. See google for examples of how to access file and folders.

To get the root drive letters you can use File.listRoots().

Joined: 2010-06-06

Thanks for the replay.....

This will work in stand lone java application.............

I want to access client file system by java web application ( when my web application url hits in client browser then i want to access client system drive folders).

Please support me...

Joined: 2010-11-22

Btw did you find the solution to your problem?
Please mail me at