Friday, 7 July 2017

Calling Windows Runtime Commands Assignment in java ~ foundjava

Calling Windows Runtime Commands

import java.io.*;
public class Win
{
public static void main(String[] Miller) throws IOException
{
 Process process =
Runtime.getRuntime().exec("/C:WINNTsystem32calculator.exe");
         process.waitFor();
}
}

No comments:

Post a Comment