OpenFile Stupid question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • james

    #1

    OpenFile Stupid question

    What Class.Method should be used to Open a file on the file system
    so that the appropriate program is run and the file loaded into it.
    Just like as if the user double clicked the file in file viewer.
    i.e. if I Open a .doc file and MSWord is set to open .doc files Word
    comes up with the file loaded and the file is writable.

    Thanks,

    JIM


  • Val Savvateev

    #2
    Re: OpenFile Stupid question

    You need Process class. Look at the example given in the documentation of
    Process.StartIn fo property.

    "james" <nospam@hyperco n.net> wrote in message
    news:%234kiBcFX DHA.1492@TK2MSF TNGP12.phx.gbl. ..[color=blue]
    > What Class.Method should be used to Open a file on the file system
    > so that the appropriate program is run and the file loaded into it.
    > Just like as if the user double clicked the file in file viewer.
    > i.e. if I Open a .doc file and MSWord is set to open .doc files Word
    > comes up with the file loaded and the file is writable.
    >
    > Thanks,
    >
    > JIM
    >
    >[/color]


    Comment

    • james

      #3
      Re: OpenFile Stupid question

      That's what I was looking for, thanks.

      When you don't know the class/method name
      you can search all day long and not find it.

      JIM



      "Val Savvateev" <vsavvateev@mer idium.com_NO_SP AM> wrote in message
      news:OlCJZiFXDH A.3924@tk2msftn gp13.phx.gbl...[color=blue]
      > You need Process class. Look at the example given in the documentation of
      > Process.StartIn fo property.
      >
      > "james" <nospam@hyperco n.net> wrote in message
      > news:%234kiBcFX DHA.1492@TK2MSF TNGP12.phx.gbl. ..[color=green]
      > > What Class.Method should be used to Open a file on the file system
      > > so that the appropriate program is run and the file loaded into it.
      > > Just like as if the user double clicked the file in file viewer.
      > > i.e. if I Open a .doc file and MSWord is set to open .doc files Word
      > > comes up with the file loaded and the file is writable.
      > >
      > > Thanks,
      > >
      > > JIM
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...