Parameters to exec() function in java
What all parameters can we give to exec() function. Please give me the link for this which can give me the details of the different parameters that can be executed开发者_JAVA技巧.. All help is appreciated
You can find all the parameters for exec in the Runtime javadoc. You can give it pretty much any command you would execute at a shell prompt.
I also found a good JavaWorld article, When Runtime.exec() won't, that explains its usage.
It are the same parameters as you would give in the "command prompt". So the answer depends on the command prompt of the underlying operating system you're using. In case of for example Windows XP, you can find documentation here. Specifically, the list of all commands can be found here.
Maybe you could describe the issue you are having ?
Look at this link: http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
This one is also good: http://www.java-tips.org/java-se-tips/java.util/from-runtime.exec-to-processbuilder.html
精彩评论