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:

  • obtenir repertoire courant java
  • java trouver le répertoire courant
  • répertoire courant java
  • java récupérer le répertoire courant d'une classe statique
  • java ftp client recevoir repertoire
  • répertoire courrant java
  • java repertoire courrant
  • java connaitre dossier courant
  • java exemple retrouver repertoire courant
  • recuperer path en java

Leave a Reply

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