Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/08/2005, 23:33
Avatar de stock
stock
 
Fecha de Ingreso: junio-2004
Ubicación: Monterrey NL
Mensajes: 2.390
Antigüedad: 19 años, 10 meses
Puntos: 53
aki te pongo un ejemplo, le faltan unos detalles, es cosa de ajustarlo a tus necesitades

Código PHP:
/*
 * Author: Crysfel Villa
 * Created: Monday, August 08, 2005 10:32:17 PM
 * Modified: Monday, August 08, 2005 10:32:17 PM
 */

import java.io.*;

public class 
BorrarDirectorio
{
    public static 
void mainString [] args throws IOException    
    
{
        
File f = new File("c:/myDirectorio");
        
        if(
f.exists()){
            if(
f.delete())
                
System.out.println("Borrado con exito :)");
            else
                
System.out.println("Se ocaciono un error al borrar el directorio :(");
        }else{
            
System.out.println("El directorio no existe :(");
        }
    }