#1
  1. Wickedwd.com
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Location
    wickedwd.com
    Posts
    201
    Rep Power
    0

    Open an .exe from a browser


    Is there any way to open a .exe file that is installed in a computer through the browser?

    ex. open www.mywebsite.com and that says hey do you want to run Microsoft word? if clicks yes then word starts up.

    Comments on this post

    • medialint disagrees : Humbug! You're cross-posting
  2. #2
  3. No Profile Picture
    Principal Goatkeeper
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2004
    Location
    Galway, Ireland
    Posts
    296
    Rep Power
    178
    i think i did that once in IE with an <a> link with the href being the exe's path, maybe with the file:// protocol, or u could do it in script
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2005
    Posts
    147
    Rep Power
    11
    Yes and no...

    If you call from an <a tag your users browser will need to have some VERY VERY weak security settings setup. IE no longer allows webpages to access the harddrive. (The security settings for this can be changed)

    The other way is to write a java applet or activeX control and have it signed. Then use the activeX Applet to call the local file. The signed active applet will prompt the user saying it requires access to the harddrive but once the user accepts it they will never be prompted again.


    Thats how things like TrendMicros House Call (Web Scan) work.


    Anyway hope this helps! Good luck!
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2005
    Location
    Sydney, Australia
    Posts
    86
    Rep Power
    13
    An activeX control can do the trick.

    Comments on this post

    • codergeek42 disagrees : Active X should be avoided entirely...
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2005
    Posts
    112
    Rep Power
    10
    In one of similar project I had written a small server application that used to accept requests from browser regarding which application to execute and execute the application by creating a new thread by server and using exec instruction. Server was written in C. However, here the server must also be running on local machine.

    Comments on this post

    • Aragon agrees
  10. #6
  11. No Profile Picture
    Closet coder
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Feb 2005
    Location
    Plantation, FL <---south florida
    Posts
    1,431
    Rep Power
    153
    i would think the problem with this is giving the web page the ability to run programs client side. allowing a client side webpage permission to execute programs can be VERY dangerous. it would probably better to find another route.
  12. #7
  13. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    258
    Rep Power
    54
    that most definetly is not possible full stop... for security reasons if it was, it wud b at a very limited extent. if u want your page to start an "application" look into ActiveX controls or maybe even Java applets (u cud make a java application/ActiveX that acted as a Word Processor, ebay do it ) they arent strictly an application but they can be very similar.
    Last edited by calpol2004; January 7th, 2006 at 07:35 PM.

IMN logo majestic logo threadwatch logo seochat tools logo