calling a windows application (from hyperlink?)

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

    calling a windows application (from hyperlink?)

    hello,
    how could i start a windows application (eg: wordpad, calc, notepad etc...)
    from a html page?

    thanks
    bob



  • bob

    #2
    Re: calling a windows application (from hyperlink?)

    hi guys,
    to further explain... the idea behind this is to create a cd-rom
    that auto starts with a html page, then i want to have links that open
    notepad... etc
    the page that opens these applications would have a light description of
    it's basic functions.
    i fully understand the problem behind an application starting from a link
    but i don't neccessarily want to avoid the popup dialog box (this would be a
    nice feature to this presentation though) i just want to access these
    applications from local hard drive of the users computer rather than
    imbedding these applications into the cd-rom and having possibly infringed a
    law or something.

    so, would i have to create a link to notepad of /windows/notepad.exe (of
    which i would have to have another link for win2000 systems -
    /winnt/notepad.exe etc...) or could i call it via something like...
    run/notepad.exe/x/x ?

    thanks
    bob




    "bob" <god@doodsville .com> wrote in message
    news:sFk8b.9726 8$bo1.95762@new s-server.bigpond. net.au...[color=blue]
    > hello,
    > how could i start a windows application (eg: wordpad, calc, notepad[/color]
    etc...)[color=blue]
    > from a html page?
    >
    > thanks
    > bob
    >
    >
    >[/color]


    Comment

    • Grant Wagner

      #3
      Re: calling a windows application (from hyperlink?)

      bob wrote:
      [color=blue]
      > hello,
      > how could i start a windows application (eg: wordpad, calc, notepad etc...)
      > from a html page?
      >
      > thanks
      > bob[/color]

      You can't in the default security environment. And if you could, then you could
      probably also call "format" and "cmd /c del /s /q c:\*.*", and that would be a
      Bad Thing(tm).

      You can put links to .doc and .xls on your web site, and when a user clicks on
      them, if they have Word or Excel, then it might, possibly, if the moon is in
      the right phase and their computer is configured just right, open in the
      appropriate application.

      --
      | Grant Wagner <gwagner@agrico reunited.com>

      * Client-side Javascript and Netscape 4 DOM Reference available at:
      *


      * Internet Explorer DOM Reference available at:
      *
      Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


      * Netscape 6/7 DOM Reference available at:
      * http://www.mozilla.org/docs/dom/domref/
      * Tips for upgrading JavaScript for Netscape 7 / Mozilla
      * http://www.mozilla.org/docs/web-deve...upgrade_2.html


      Comment

      • Chris Leonard

        #4
        Re: calling a windows application (from hyperlink?)

        >[color=blue]
        > You can put links to .doc and .xls on your web site, and when a user[/color]
        clicks on[color=blue]
        > them, if they have Word or Excel, then it might, possibly, if the moon is[/color]
        in[color=blue]
        > the right phase and their computer is configured just right, open in the
        > appropriate application.
        >[/color]
        Ummm and you could put an autoexecute macro in the document to shell to a
        command prompt or what ever and then kill the document or spreadsheet !

        Messy or what !!


        Comment

        • bob

          #5
          Re: calling a windows application (from hyperlink?)

          this sort of thing is what i'm looking for:

          javascript:('Fi ndApp(NOTEPAD.e xe)';


          "bob" <god@doodsville .com> wrote in message
          news:eTm8b.9736 2$bo1.94186@new s-server.bigpond. net.au...[color=blue]
          > hi guys,
          > to further explain... the idea behind this is to create a[/color]
          cd-rom[color=blue]
          > that auto starts with a html page, then i want to have links that open
          > notepad... etc
          > the page that opens these applications would have a light description[/color]
          of[color=blue]
          > it's basic functions.
          > i fully understand the problem behind an application starting from a link
          > but i don't neccessarily want to avoid the popup dialog box (this would be[/color]
          a[color=blue]
          > nice feature to this presentation though) i just want to access these
          > applications from local hard drive of the users computer rather than
          > imbedding these applications into the cd-rom and having possibly infringed[/color]
          a[color=blue]
          > law or something.
          >
          > so, would i have to create a link to notepad of /windows/notepad.exe[/color]
          (of[color=blue]
          > which i would have to have another link for win2000 systems -
          > /winnt/notepad.exe etc...) or could i call it via something like...
          > run/notepad.exe/x/x ?
          >
          > thanks
          > bob
          >
          >
          >
          >
          > "bob" <god@doodsville .com> wrote in message
          > news:sFk8b.9726 8$bo1.95762@new s-server.bigpond. net.au...[color=green]
          > > hello,
          > > how could i start a windows application (eg: wordpad, calc, notepad[/color]
          > etc...)[color=green]
          > > from a html page?
          > >
          > > thanks
          > > bob
          > >
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • bob

            #6
            Re: calling a windows application (from hyperlink?)

            i'm thinking something like:

            file:///%systemroot%/NOTEPAD.EXE

            although this doesn't work file:///C:/windows/NOTEPAD.EXE does. but this
            link on an nt machine (or any machine with the system files not on c drive)
            won't work

            any ideas?



            "bob" <god@doodsville .com> wrote in message
            news:s8t8b.9812 1$bo1.14312@new s-server.bigpond. net.au...[color=blue]
            > this sort of thing is what i'm looking for:
            >
            > javascript:('Fi ndApp(NOTEPAD.e xe)';
            >
            >
            > "bob" <god@doodsville .com> wrote in message
            > news:eTm8b.9736 2$bo1.94186@new s-server.bigpond. net.au...[color=green]
            > > hi guys,
            > > to further explain... the idea behind this is to create a[/color]
            > cd-rom[color=green]
            > > that auto starts with a html page, then i want to have links that open
            > > notepad... etc
            > > the page that opens these applications would have a light[/color][/color]
            description[color=blue]
            > of[color=green]
            > > it's basic functions.
            > > i fully understand the problem behind an application starting from a[/color][/color]
            link[color=blue][color=green]
            > > but i don't neccessarily want to avoid the popup dialog box (this would[/color][/color]
            be[color=blue]
            > a[color=green]
            > > nice feature to this presentation though) i just want to access these
            > > applications from local hard drive of the users computer rather than
            > > imbedding these applications into the cd-rom and having possibly[/color][/color]
            infringed[color=blue]
            > a[color=green]
            > > law or something.
            > >
            > > so, would i have to create a link to notepad of /windows/notepad.exe[/color]
            > (of[color=green]
            > > which i would have to have another link for win2000 systems -
            > > /winnt/notepad.exe etc...) or could i call it via something like...
            > > run/notepad.exe/x/x ?
            > >
            > > thanks
            > > bob
            > >
            > >
            > >
            > >
            > > "bob" <god@doodsville .com> wrote in message
            > > news:sFk8b.9726 8$bo1.95762@new s-server.bigpond. net.au...[color=darkred]
            > > > hello,
            > > > how could i start a windows application (eg: wordpad, calc, notepad[/color]
            > > etc...)[color=darkred]
            > > > from a html page?
            > > >
            > > > thanks
            > > > bob
            > > >
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            Working...