Launching A Program From A Hyperlink?!

Discussion in 'Programming' started by NITRO23456, May 18, 2008.

  1. #1
    Hi

    I am trying to launch applications from a webpage to trigger the desired application to launch on the clients machine when they click the link.

    There is no problem that the client machines won't have the application as its for an intranet site on a LAN.

    The problem is the security prompt that appears when users click on the link. I am curently coding them like this for example:

    <A HREF="C:/PROGRAM FILES/WINDOWSMEDIAPLAYER.EXE">WMP</A>

    It works fine but comes up with the prompt 'do you want to run or save this application' - I want it to run automatically without this prompt.

    Any ideas?
     
    NITRO23456, May 18, 2008 IP
  2. allaboutgeo

    allaboutgeo Peon

    Messages:
    85
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you can do this, then any person with bad intent can also do that. I don't think this is possible.
     
    allaboutgeo, May 18, 2008 IP
  3. Angelus

    Angelus Well-Known Member

    Messages:
    1,622
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    138
    #3
    It is easier to implement some kind of browser based player. Just look at YouTube....

    p.l.u.r.
     
    Angelus, May 18, 2008 IP
  4. NITRO23456

    NITRO23456 Well-Known Member

    Messages:
    516
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #4
    thanks for your replies

    I dont actually want to launch WMP!! I was using that as an example.
     
    NITRO23456, May 18, 2008 IP
  5. brian65

    brian65 Active Member

    Messages:
    1,172
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #5
    You can't launch an abitrary executable on a user's PC in the way you've shown in your example. It's simply not allowed as it would be a huge security risk.
     
    brian65, May 19, 2008 IP
  6. allaboutgeo

    allaboutgeo Peon

    Messages:
    85
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Would you tell us the exact requirement?
     
    allaboutgeo, May 24, 2008 IP