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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Java Question - java.lang.Runtime

  • 29-04-2003 10: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, Registered Users 2 Posts: 4,196 ✭✭✭deadl0ck


    What's you Java code look like ?

    Anything like this :

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

    ?


Advertisement