File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
How to access drive
Joined: Dec 07, 2001
Feb 11, 2002 17:42:00
I want to provide a browse button by clicking on it will go to the drive letter. What i mean when it click the button say "Browse" this will show a box which will have all drives letter of that computer.
Can you help me in this regard?
Joined: Jul 11, 2001
Feb 12, 2002 08:34:00
Take a look at the
GenRocket - A Test Data Generation Platform
Joined: Jan 15, 2002
Feb 12, 2002 12:59:00
listRoots will list all the drives, including network drives
File  roots = File.listRoots(); for(int i = 0; i < roots.length; i++) System.out.println(roots[i]);
How you want to display in your GUI is up to you then.
It is sorta covered in the
JavaRanch Style Guide
subject: How to access drive
Uploading from a web page
how to browse only folder
applying CSS to input type="file"
Browse Button Value
JFileChooser and network drives
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013