×

Loading...

try it. have fun!

crayannie (心爱的人在加拿大)
import java.io.*;
import java.util.*;

public class testExec{
public static void main(String args[]){
Runtime rt = Runtime.getRuntime();
try {
rt.exec("notepad.exe");
}catch(Exception e){
System.out.println(e);
}
}
}
(#72025@0)
2001-5-16 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: A java question about starting batch file via Runtime.exec.

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论