I made a program in java, and in the program i needed to use cmd,
I saw you can use Runtime().exec method, but i didn't succeed using it.
I tried to do this:
public class name{
public static void main(String args[]){
Runtime.exec("ipconfig");
}
}