0 Replies Latest reply: May 16, 2011 12:50 AM by 848908 RSS

    How to run a cmd in a java program.

    848908
      Hi,

      I'm able to call a .exe or .cmd from java program but I am unable to run the same command directly in a program.

      Runtime runtime = Runtime.getRuntime();

      Process process = runtime.exec(" "); how to use commands with in this.

      Can any one explain with some complex commands also.


      Thanks,
      Dinesh