CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Posts
    3

    starting other applications from a java app?!

    Hi,

    I've got a java-application and want to start another application from it. Like Shell, Command or something. e.g. how can
    I run a batchfile from within my Java application? Anyone?

    Thanks a lot!




  2. #2
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: starting other applications from a java app?!

    I'm sorry if I have got the question wrong. But if u want to know...
    'how to execute a program from within java'

    u can do it using Runtime class. Call its exec method. And if u want to wait till the program exists, that method returns Process object which has method something like 'wait'.

    - UnicMan

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

Featured