1

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.. All help is appreciated

Andrew Thompson
169k42 gold badges224 silver badges441 bronze badges
asked Jul 13, 2010 at 17:51

3 Answers 3

2

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.

answered Jul 13, 2010 at 17:56
Sign up to request clarification or add additional context in comments.

4 Comments

@Alexander: I don't know what that means. Are you having trouble with the link?
@Bill, it's been touch and go the whole day. I really "love" the pseudo-random id now in the javadoc URL. I guess without id, it's not Oracle-proof :). BTW, +1 for the JavaWorld article.
@Alexander: Thanks. That "download" prefix threw me off a bit as well.
@Bill, I think it's an Oracle requirement, that URL should have at least 20 extra dead weight characters. For example, if you had any doubts that you are looking for docs, they've included it there twice. :)
1

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.

answered Jul 13, 2010 at 17:54

Comments

1
answered Jul 13, 2010 at 18:00

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.