|
-
Mar 30th, 2004, 04:12 PM
#1
Thread Starter
Lively Member
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
-
Mar 30th, 2004, 04:20 PM
#2
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
-
Mar 30th, 2004, 04:37 PM
#3
Frenzied Member
Or make a plugin. Don't ask me how to though
Have I helped you? Please Rate my posts. 
-
Mar 31st, 2004, 02:06 AM
#4
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.
-
Apr 19th, 2004, 02:02 AM
#5
New Member
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.
-
Apr 21st, 2004, 04:23 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|