Java: Obtenir le répertoire courant

Author:

 java
{filelink=7960}

import java.io.IOException;

public class Ex_Rep
{
  public static void main(String[] argv) throws IOException
  {

   // Retourner le chemin complet du répertoire de travail
    String curDir = System.getProperty("user.dir");
    System.out.println ("Le répertoire courant est: "+curDir);
  }
}

A Voir sur le même Sujet:

  • comment savoir le dossier courant dans un programme java
  • java récupérer le répertoire utilisateur
  • connaire le repertoire actuel java
  • windows java nom repertoire recuperer court ou long ?
  • repertoire cpourant java
  • répértoire courant + java
  • importer class java répertoire courant
  • java récupérer chemin absolu courant
  • comment avoir le repertoir courant en java
  • récupérer le répertoire courant java

Leave a Reply

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