Results 1 to 2 of 2

Thread: Execute Command Line?

  1. #1

    Thread Starter
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Angry Execute Command Line?

    Hey,
    I need to call a java Programm from within my C# code.

    So what I usually do in a Command Line (java - jar myApp.jar) now needs to be executed from an Command line.

    And then I need my C# code to wait till the java app is stopped.

    Does anyone know how to do this?

    Thx,
    Stephan
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

  2. #2
    Addicted Member DJ_Catboy's Avatar
    Join Date
    Jan 2003
    Location
    Suffolk, UK
    Posts
    159
    Hi,

    Try this:

    Code:
    System.Diagnostics.Process.Start("jar myApp.jar");
    This worked for me? I don't know much about it somebody helped me out with it.

    Hope it helps!
    DJ

Posting Permissions

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



Click Here to Expand Forum to Full Width