1 Reply Latest reply on Oct 29, 2008 3:21 PM by 843807

    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