W
wang
Hi all,
I'd like to call a batch file from a java program. I think I should
find the way in JNI. But after I've read the java tutorial for JNI,
it seems to me that one can only call a method in a .dll file, and that
there is no simple way as in C for calling a system cmd:
system("dir /w /on");
How can effect as above be achieve in java in a simple way? A simple
example would be very helpful. Thanks in advance!
k.w.wang
I'd like to call a batch file from a java program. I think I should
find the way in JNI. But after I've read the java tutorial for JNI,
it seems to me that one can only call a method in a .dll file, and that
there is no simple way as in C for calling a system cmd:
system("dir /w /on");
How can effect as above be achieve in java in a simple way? A simple
example would be very helpful. Thanks in advance!
k.w.wang