Is that possible to execute all the command available in cmd prompt by a java program?
all that i know is there are .exe files corresponding to commands in windows>system32 folder, those are only executable by Runtime().exec command.what about other commands not having corresponding .exes?is it possible to pipe commands?

(I'm a newbie to this forum.I've asked the same question under another similar thread before, since i didn't know the rules.hope you won't mind.)

Thanks.

Recommended Answers

cmd /c <command>

See http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

And read it completely and thoroughly, although I can't imagine why you would really want to do all this.

Jump to Post

All 2 Replies

Thank u very much.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.