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:

  • accéder au dossier courant java
  • java savoir repertoire courant
  • java recuperer le chemin courant
  • java récupérer le répertoire courant serveur apache web
  • liste contenu repertoire java
  • recuperer path en java
  • comment changer de répertoire couran java
  • fichier java obtenir le code de programmation
  • java recuperation du repertoire courant
  • récupérer répertoire courant + java

Leave a Reply

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