开发者

Parameters to exec() function in java

开发者 https://www.devze.com 2023-01-07 04:53 出处:网络
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技巧..

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号