Posted By:
Anonymous
Posted On:
Monday, May 26, 2003 08:09 AM
// With the following code using JDK 1.4.01... I can get The list root of a machine (C:/ , A:/ , D:/, ......) , but if I use the first versions of JDK it is not possible. File list[] = File.listRoots(); for ( int i = 0; i < list.length; i++ ) { File root = list[i]; if ( root.exists() ) System.out.println( root.getPath()); Can you help me to get a List Root of a Machine using the first versions of jdk too ? thanks.
More>>
// With the following code using JDK 1.4.01... I can get The list root
of a machine (C:/ , A:/ , D:/, ......) , but if I use the first versions of
JDK it is not possible.
File list[] = File.listRoots();
for ( int i = 0; i
< list.length; i++ )
{
File root = list[i];
if ( root.exists() )
System.out.println( root.getPath());
Can you help me to get a List Root of a Machine using the first versions of jdk
too ?
thanks.
<<Less