Results 1 to 4 of 4
- 08-25-2009, 12:37 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 3
- Rep Power
- 0
- 08-25-2009, 12:55 PM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
If you mean distinguish between those types of file systems then the answer is that standard Java is not supposed to know about those things. The best you can do is
to get all the various roots you've got and manipulate them but Java won't tell you if one is your CD/ROM or your DVD/ROM.Java Code:System.out.print(Arrays.toString(File.listRoots()));
- 08-25-2009, 01:15 PM #3
Member
- Join Date
- Aug 2009
- Posts
- 3
- Rep Power
- 0
At first thanx for reply.
Code you have entered I know and I use it.
I do not need to distinguish if one is CD/ROM or DVD/ROM, but almost the same, I need to distinguish if it is HHD or CD/ROM (DVD/ROM), removable disk, etc...
Is this impossible too?
- 08-25-2009, 01:27 PM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
Setting path under Linux to recognize jre
By cccccc in forum New To JavaReplies: 4Last Post: 03-31-2009, 06:51 AM -
Using scanner.hasNext() but recognize return
By ScKaSx in forum New To JavaReplies: 5Last Post: 01-27-2009, 10:11 AM -
Listing Logical Drives
By Juggler in forum New To JavaReplies: 3Last Post: 08-10-2008, 07:08 AM -
SOS!!HELP!!Code for recognize a printer installed by the name...
By Anna in forum New To JavaReplies: 0Last Post: 07-30-2008, 11:25 AM -
How to detect USB device drives & set/remove file attributes
By sharafat in forum Advanced JavaReplies: 0Last Post: 01-20-2008, 06:07 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks