You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
369 B
Java
21 lines
369 B
Java
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();
|
|
}
|
|
}
|
|
}
|