Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Java Question - java.lang.Runtime

Options
  • 29-04-2003 11:40am
    #1
    Closed Accounts Posts: 1,719 ✭✭✭


    hi,
    i'm having a slight problem with java.i've a program that calls an batch file (it's a .cmd in win2k).
    but java just will not execute it.

    so i tried to execute cmd.exe with some arguments to run the batch file.but to no avail.

    what i need to know is how can i get java to execute a batch file from a runtime?


Comments

  • Registered Users Posts: 4,185 ✭✭✭deadl0ck


    What's you Java code look like ?

    Anything like this :

    Process p = Runtime.getRuntime().exec(command);

    ?


Advertisement