Java Program to excecute Windows application like notepad, calulator.

Below is the code to execute any wondows  ap[plication (example: notepad, calulator):

import java.util.*;
import java.io.*;

class Notepad
{
    public static void main(String[] args)
    {
        Runtime rs=Runtime.getRuntime();
        try
        {
            rs.exec("calc");
            rs.exec("notepad");
        }
        catch(IOException e)
        {
            System.out.println(e);
        }
    }
}  

Thank You.

© Copyright - 2018 - 2021 | All rights reserved at Funda of Web IT