Advertisement
Shailrshah

Opening Notepad

Dec 18th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. import java.io.*;
  2. class OpenNotepad{
  3.         public static void main(String args[]){
  4.                 try{
  5.                         Runtime.getRuntime().exec("notepad.exe");
  6.                 } catch (IOException e){
  7.                         System.out.println("Error.");
  8.                 }
  9.         }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement