Invoking Windows apps from file type

Discussion in 'Java' started by Ike, Aug 14, 2003.

  1. Ike

    Ike Guest

    Oh this is a Windows-specific question I need to solve in Java. Assuming one
    has MS Word on their system, how can I invoke word to come up with a given
    document, when all I know is the document name, and that fact that if the
    person were to double click the document name in Windows, it would invoke
    Word with that document?

    Thanks, Ike
    Ike, Aug 14, 2003
    #1
    1. Advertising

  2. Does something like:

    try {
    Process p = Runtime.getRuntime().exec("cmd /c start c:\\resume.doc");
    p.waitFor();
    } catch (Throwable e) {
    }

    work for you?

    HTH
    sandip

    "Ike" <> wrote in message news:<GHO_a.14363$>...
    > Oh this is a Windows-specific question I need to solve in Java. Assuming one
    > has MS Word on their system, how can I invoke word to come up with a given
    > document, when all I know is the document name, and that fact that if the
    > person were to double click the document name in Windows, it would invoke
    > Word with that document?
    >
    > Thanks, Ike
    Sandip Chitale, Aug 14, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VB Programmer
    Replies:
    1
    Views:
    394
    Axel Dahmen
    Nov 3, 2003
  2. aph
    Replies:
    4
    Views:
    401
    Peter Hansen
    Jan 14, 2006
  3. anonymous

    Call windows apps from web apps

    anonymous, Feb 22, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    4
    Views:
    211
    anonymous
    Feb 28, 2005
  4. Richard Choate

    Web enabled apps/Thin client apps

    Richard Choate, Jul 23, 2003, in forum: ASP General
    Replies:
    2
    Views:
    296
    Chris Barber
    Jul 23, 2003
  5. Replies:
    1
    Views:
    114
    Jan Svitok
    Aug 21, 2006
Loading...

Share This Page