Launch an *.exe from internet explorer 6 and 7

i would like to launch an application within internet explorer 6 and 7

e.g click a link and then launch an application *.exe

actually i would like to open a *.doc file from IE but before i open the document i'll do some processing before launch word to open the *.doc file automatically

my idea now is to create an *.exe application that does the processing and then launch the *.doc through System.Diagnostics.Process.Start(@"C:\\chartfx-xml\Mintex.doc");




Answer this question

Launch an *.exe from internet explorer 6 and 7

  • JR Nip

    Hi,

    Have you seen the Discussion toolbar (IE Addon, part of Office)

    Also have you considered Word Macros or Template documents.

    You choice of solution will depend upon you wish to host the document in the IE browser or run it as an external application - Word.

    Regards



  • duck thing

     

    This works for me...

    function fn_launchPg(pg) {
      var
    ws = new ActiveXObject("WScript.Shell");
      ws.Exec(
    "iexplore -k " + pg);
    }

     Replace the "iexplore -k " + pg  with you command line. Be carefull with the "//"s, I couldn't get the absolute path to work, probably just operator error. 


  • Launch an *.exe from internet explorer 6 and 7