Results 1 to 2 of 2

Thread: hai

  1. #1
    aarthi2learn is offline Member
    Join Date
    Dec 2008
    Posts
    5
    Rep Power
    0

    Default hai

    hai everybody.. this is aarthi. i m currently working in iWay tools that is used for integration, in which my part will be creating customization codes in java.

    i want to know how to start a command prompt window using a simple java code. i mean to say, while i run a java program, the program must display or pop up a command prompt automatically.

    can anyone help me out in this???

    Thanks in advance....

  2. #2
    roots's Avatar
    roots is offline Moderator
    Join Date
    Jan 2008
    Location
    Dallas
    Posts
    293
    Rep Power
    7

    Default

    Welcome to the forum.

    try this in your code,
    Java Code:
    Runtime.getRuntime().exec("cmd"); // For windows.
    dont worry newbie, we got you covered.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •