Tuesday 7 February 2012

Java program for opening notepad


Coding
class demo {
public static void main(String a[]) {
Runtime r=Runtime.getRuntime();
Process p=null;
try {
p=r.exec("notepad");
}
 catch (Exception e) {
System.out.println("Error executing notepad");
}

No comments:

Post a Comment