Close a program and then start it up again - on start up!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brendanmcdonagh
    New Member
    • Nov 2007
    • 153

    Close a program and then start it up again - on start up!!!

    Hi all

    I have a problem with my set up on pc and am thinking java can help me, also thinking using java would help me with my knowledge of java.

    The reasons i need this are odd so i want go in to them.

    I want a java program to open when windows starts then i want the program to close an exe and then open it again, and being greedy i would then like the java program to close.

    I believe this is possible, is it? and any pointers where to start??

    Regards

    Brendan
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Have a look at the Runtime.exec() family of methods; they can solve at least part
    of your problem.

    kind regards,

    Jos

    Comment

    • brendanmcdonagh
      New Member
      • Nov 2007
      • 153

      #3
      hi jos

      Done that and it works a treat, now i am being greedy but worth a shot. Can i have my code to start the program i started as a service??

      Regards

      Brendan

      Comment

      Working...