hello,
I need help please how can I call the command prompt in a java application,I want to make the prompt command as an option in my application,but i don't know how,can any one help me please and thanks

Recommended Answers

All 2 Replies

Please explain what you want to do.
You can output to the console with System.out.printnln()
You can read from the console using System.in

hello,
I need help please how can I call the command prompt in a java application,I want to make the prompt command as an option in my application,but i don't know how,can any one help me please and thanks

Also you could use ProcessBuilder class if you want to pass commands to cmd...

Be a part of the DaniWeb community

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