Originally posted by netharam ram:
If the file is a drive ,how to get the details of the drive such as capacity, whether it is a local drive,or floppy drive, cd-ROM drive etc.
A java File object cannot represent a drive. It can represent the root directory of a drive (in the world of Windows), but that's still a directory, not particularly different to any other, really.
I do not know of any Java API for getting information about storage hardware (hard drives, mounted network drives, CDs etc.). I think that's a bit low-level for Java.
[ January 31, 2002: Message edited by: Peter Chase ]