Merhaba arkadaşlar.Javada bazen bir exeyi ve cmd komutunu çalıştırmak istersiniz.Bunun için Process sınıfını kullanabilirsiniz..
[java]
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class BilgisayarıKapat_Process {
public static void main(String[] args) {
try {
Process p1 = Runtime.getRuntime().exec("E:\\DENEME.exe");
Process p2 = Runtime.getRuntime().exec("E:\\DENEME.exe");
// BufferedReader in = new BufferedReader(
// new InputStreamReader(p.getInputStream()));
} catch (IOException e) {
}
}
}
[/java]