calling a windows application (from hyperlink?)

Discussion in 'Javascript' started by bob, Sep 12, 2003.

  1. bob

    bob Guest

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

    thanks
    bob
     
    bob, Sep 12, 2003
    #1
    1. Advertising

  2. bob

    bob Guest

    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" <> wrote in message
    news:sFk8b.97268$...
    > hello,
    > how could i start a windows application (eg: wordpad, calc, notepad

    etc...)
    > from a html page?
    >
    > thanks
    > bob
    >
    >
    >
     
    bob, Sep 12, 2003
    #2
    1. Advertising

  3. bob

    Grant Wagner Guest

    bob wrote:

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


    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 <>

    * Client-side Javascript and Netscape 4 DOM Reference available at:
    *
    http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html

    * Internet Explorer DOM Reference available at:
    *
    http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_entry.asp

    * 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-developer/upgrade_2.html
     
    Grant Wagner, Sep 12, 2003
    #3
  4. >
    > 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.
    >

    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 !!
     
    Chris Leonard, Sep 12, 2003
    #4
  5. bob

    bob Guest

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

    javascript:('FindApp(NOTEPAD.exe)';


    "bob" <> wrote in message
    news:eTm8b.97362$...
    > 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" <> wrote in message
    > news:sFk8b.97268$...
    > > hello,
    > > how could i start a windows application (eg: wordpad, calc, notepad

    > etc...)
    > > from a html page?
    > >
    > > thanks
    > > bob
    > >
    > >
    > >

    >
    >
     
    bob, Sep 13, 2003
    #5
  6. bob

    bob Guest

    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" <> wrote in message
    news:s8t8b.98121$...
    > this sort of thing is what i'm looking for:
    >
    > javascript:('FindApp(NOTEPAD.exe)';
    >
    >
    > "bob" <> wrote in message
    > news:eTm8b.97362$...
    > > 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" <> wrote in message
    > > news:sFk8b.97268$...
    > > > hello,
    > > > how could i start a windows application (eg: wordpad, calc, notepad

    > > etc...)
    > > > from a html page?
    > > >
    > > > thanks
    > > > bob
    > > >
    > > >
    > > >

    > >
    > >

    >
    >
     
    bob, Sep 13, 2003
    #6
    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. Guest
    Replies:
    1
    Views:
    2,459
    Alvin Bruney
    Nov 2, 2003
  2. Amaryllis
    Replies:
    1
    Views:
    539
    Mark Rae
    Aug 10, 2004
  3. bob
    Replies:
    12
    Views:
    12,595
    Ken Williams
    Sep 13, 2003
  4. davetichenor
    Replies:
    1
    Views:
    859
    Eliyahu Goldin
    Oct 30, 2006
  5. Ken
    Replies:
    1
    Views:
    396
    Alvin Bruney
    Aug 16, 2003
Loading...

Share This Page