Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/01/2006, 13:26
Avatar de dogduck
dogduck
 
Fecha de Ingreso: enero-2006
Ubicación: ¿Atlantida, Hesperides, Islas afortunadas?
Mensajes: 2.231
Antigüedad: 18 años, 4 meses
Puntos: 19
Si fichero.bat es
Código:
echo hola
pause
Y testbat.java
Código:
public class testbat {
	public static void main(String[] args){
		Runtime aplicacion = Runtime.getRuntime(); 
        try{aplicacion.exec("cmd.exe /K C:/java/fichero.bat"); }
        catch(Exception e){System.out.println(e);}

	}
}
Me compila sin error y se ejecuta sin error , pero no veo la shell de dos con hola ... ¿?