Here is the code in it's totality that works, minus the pause and second command:
import java.applet.*;
import java.awt.*;
import java.io.*;
public class ROUTERcmd extends Applet {
public void init() {
Process f;
String cmd = "tftp -i 192.168.1.101 GET router_image.exe";
try {
f = Runtime.getRuntime().exec(cmd);
}
catch(IOException e) {
e.printStackTrace();
}
Process s;
}
}
So I cannot figure out where to include the other commands, i.e., execute the router_image.exe after a 5 second pause.
Any help much appreciated.