0
Can we run command prompt commands using java
I want to run cmd commands like dir,cd. Can this be accomplished with java?
1 Antwort
+ 2
Yes, but it depends on your System as to how you do it and which commands to run.
Something like:
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("dir");
Google for more answers as to what you're trying to do and on what OS.