Results 1 to 6 of 6

Thread: Start an Exe from a wab page

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    96

    Start an Exe from a wab page

    My company wants to be able to run a program with a launch point from a web page.

    The file we have is located on everyone’s C: Drive.

    So for example. With a click of a button on a web page we want to be able to run an executable.

    Is this possible to do without a message popping up to the user asking them to if they trust this software? I basically have to have the web page launch the executable without the user doing nothing more than clicking the button.

    Thanks,

    -Ober
    There Are No Stupid Questions, But There Are A Lot Of Inquisitive Idiots

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    I cannot even begin to count the number of ways that would violate security ..... I don't think there's a whole lot you can do.

    Well, there's one thing I can think of. Create a file association with your app. Like .XYZ so that when a file with extention XYZ is double clicked your app runs. Then, point the link to an XYZ file on the server. The first time the user gets the "What do I do with it?" message, they tell their browser to open it using your application, and to never ask again. I *think* that will work.... still risky though if you ask me.

    TG
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Or make a plugin. Don't ask me how to though
    Have I helped you? Please Rate my posts.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    What's the exe supposed to do? Maybe you can use flash or an Java applet.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    New Member llamabird's Avatar
    Join Date
    Apr 2004
    Location
    The land down under
    Posts
    3
    this is some javascript that i used to create an activedesktop page last week:

    put this in a notepad file and save it in the same directory as you html page as "openexe.js"
    Code:
    function ShellExJ(filename)
    		{
    		var objShell = new ActiveXObject("Shell.Application");
    		objShell.ShellExecute(filename, "", "", "open", 1);
    		}
    put this in the <head> tag in the html doc
    Code:
    <script language="jscript" src="openexe.js"></script>
    finally, put this code where ever you want the links (this example would open frontpage xp)
    Code:
    <a target="_self" href="javascript:ShellExJ('c:\\Program Files\\Microsoft Office\\Office10\\frontpg.exe')">Frontpage</a>
    gl with it, hope this helped

    edit: where it has "href="javascript:ShellExJ" the java script bit should have no spaces inbetween it, it won't let me say java script as one word :\
    Last edited by llamabird; Apr 19th, 2004 at 02:09 AM.

  6. #6
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390
    There would be no way to do this without creating an activeX control ... if you are fluent with VB this would be no prob ... even then you get prompted to install the control

    the reason this would not be possible is simpley :

    YOU CAN DO NETHING IN AN EXE

    if you could do this it would then be possible to launch an app without prompting the user and then have it delete their system files - and u r wondering if it is possible - get real

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width