programming-examples/java/Basics/Calling Windows Runtime Commands.java

13 lines
257 B
Java
Raw Normal View History

2019-11-18 14:44:36 +01:00
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();
}
}