I tested this program... and they worked fine... but I need to do this in an applet. Someone can help me ???
import java.lang.System;
import java.lang.Runtime;
import java.io.IOException;
public class loadNotepad {
public static void main(String args[]) throws IOException {
Runtime r = Runtime.getRuntime();
Process p = null;
try {
p = r.exec("C:\\winnt\\notepad.exe"
}
catch (Exception e) { }
}
}
Thanks !!
import java.lang.System;
import java.lang.Runtime;
import java.io.IOException;
public class loadNotepad {
public static void main(String args[]) throws IOException {
Runtime r = Runtime.getRuntime();
Process p = null;
try {
p = r.exec("C:\\winnt\\notepad.exe"
}
catch (Exception e) { }
}
}
Thanks !!