1 Reply Latest reply: Oct 29, 2008 10:21 AM by 843807 RSS

    How to excute commands in DOS ?

      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");

      catch(Exception e)

      Also plz. shed some light on how to execute commands with multiple parameters like:
      attrib -s -h -r "*.*" /s /d