Lister les racines(roots) du Système d’exploitation

Author:

 list, list, java
{filelink=7953}


import java.io.File;

public class Disque_Ex
 {

  public static void main(String[] args)
  	{
    File[] list_root = File.listRoots();

    // Afficher la liste des volumes
    for (int i = 0; i < list_root.length; i++)
     {
      System.out.println(list_root[i]);
    }
  }
}

Leave a Reply

Your email address will not be published. Required fields are marked *