programming-examples/java/XML/Process Exec.java

21 lines
369 B
Java
Raw Normal View History

2019-11-15 12:59:38 +01:00
Process Exec
package com.ack.j2se.lang;
import java.io.IOException;
public class ProcessExec {
public static void main( String[] argv ) {
String command = "c:\\winnt\\explorer.exe";
try {
Process process = Runtime.getRuntime().exec( command );
}
catch( IOException ioex ) {
ioex.printStackTrace();
}
}
}