public class startprocess { private string command = "c:\\program files\\windows media player\\wmplayer.exe ";
public string getcommand() { return command; }
public void setcommand(string command) { this.command = command; }
public void startprocess() { runtime r = runtime.getruntime(); process p = null; try { p = r.EXEC(command); } catch (throwable t) { t.printstacktrace(); } }
public static void main(string[] args) { new startprocess().startprocess(); } }