I want to execute DOS commands like "shutdown -i" in my Java application but I'm not able to get it done.
I've used the method as follows but it does not work(does not throw any exceptions as well):
Process child=Runtime.getRuntime().exec("shutdown -i");
Also plz. shed some light on how to execute commands with multiple parameters like:
attrib -s -h -r "*.*" /s /d
This forum is for info on helping make Java accessible to people with disabilities. I fear you won't get an answer to your question via this forum. I recommend you post your question to a different forum, such as the "Java Programming" forum