473,574 Members | 2,617 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Running an executable from a Web page

How do I create a link on a Web page on my hard drive that will run an
executable file on my hard drive?

For example, let's say I create runpoodle.htm and save it to my hard
drive, and let's also say I have an executable file on the root of C
named c:\poodle.exe.

How can I create a link of some sort on runpoodle.htm that will run
poodle.exe on c:\ ?

Better yet, can I specify a data file that poodle.exe will open after it
starts?

I use Windows XP Pro, and when I create a simple href anything like this

<a href="file:\\c: \poodle.exe"> Run POODLE.EXE</a>

the result is that Windows opens a security warning box asking whether I
want to download poodle.exe.

If you need any other information, please let me know.

If this is not the appropriate newsgroup for this question, can you
suggest which ones I should try?

Thanks.

--Johnny
johnnyg aattssiiggnn kc.rr.com
http://barelybad.com
Jul 23 '05 #1
7 29388

"Johnny" <jo******@kc.rr .com> wrote in message
news:Bv******** **********@twis ter.rdc-kc.rr.com...
How do I create a link on a Web page on my hard drive that will run an
executable file on my hard drive?
In other words, this isn't a question about authoring for the WWW, so
technically it's off-topic. Also I'm curious why you would want to do this,
instead of just having a shortcut on your Windows desktop. Nevertheless:
For example, let's say I create runpoodle.htm and save it to my hard
drive, and let's also say I have an executable file on the root of C
named c:\poodle.exe.

How can I create a link of some sort on runpoodle.htm that will run
poodle.exe on c:\ ? Better yet, can I specify a data file that poodle.exe will open after it
starts?
You can't, to the best of my knowledge.

I use Windows XP Pro, and when I create a simple href anything like this

<a href="file:\\c: \poodle.exe"> Run POODLE.EXE</a>
file:///c:/poodle.exe

Forward slashes, and 3 of them after the colon.

the result is that Windows opens a security warning box asking whether I
want to download poodle.exe.
Whether you are given the opportunity to download only, download or execute,
or execute only is a function of your browser, and can only be configured
there.

If you need any other information, please let me know.

If this is not the appropriate newsgroup for this question, can you
suggest which ones I should try?


One of the Microsoft IE groups, most likely, for questions like this.

Jul 23 '05 #2
In our last episode,
<Bv************ ******@twister. rdc-kc.rr.com>,
the lovely and talented Johnny
broadcast on comp.infosystem s.www.authoring.html:
How do I create a link on a Web page on my hard drive that will run an
executable file on my hard drive?
Evidently, by "Web page" you do not really mean a page on the
World Wide Web. Possibly you mean, an html file on your hard
disk.
For example, let's say I create runpoodle.htm and save it to my
hard drive, and let's also say I have an executable file on the
root of C named c:\poodle.exe. How can I create a link of some sort on runpoodle.htm that will run
poodle.exe on c:\ ?
Not in general. Various browsers have various ways of accomplishing
either what you want or something like it. For example lynx has
lynxexec which does what you want, and (not exactly what you are
asking) lynxcgi which allows you to use cgi without running a server.
These capabilities have to be compiled into lynx and enabled in the
lynx configuration file. They are not compiled and enabled by
default because of obvious security concerns. If you ever connect
the machine involved to the internet, be sure you understand the
security issues involved.
Better yet, can I specify a data file that poodle.exe will open
after it starts?
In Netscape and IE and various work-alikes, the way to go about
this is to have a unique data file type and associate it with the
executable. Then link to the data file so the browser will open
that type of file with the executable. For example:

<a href=file://localhost/PATH/data.poo>Work on Poodle Data</a>

The association between *.poo and poodle.exe is set in your browser
configuration (details of how to do that vary slighty by browser).

I'm not sure how to launch poodle.exe without a data file. However,
depending upon the type of executable, you could have a dummy data
file, and when you follow a link to it, the executable is launched
with it. Then you can select other files, depending upon the
executable's capabilities.
I use Windows XP Pro, and when I create a simple href anything like this <a href="file:\\c: \poodle.exe"> Run POODLE.EXE</a> the result is that Windows opens a security warning box asking whether I
want to download poodle.exe.
You should link to the data file. This won't work if the data files
are a type that the browser opens itself. If you get the download
box, configure your browser's associations so that files of this
type are opened by the executable you want.

In other words you want to define *.poo files as applications/poodle
type, and you want your browser to open *.poo files with poodle.exe.
In Netscape you do this with "Helper Appications" in the Navigator
part of preferences.

There may or may not be devious crude hacks to open executables that
work on kinds of files that the browser normal opens itself, such as
linking to a dummy file of a fictious file type. This will depend
upon the executable and what it does if it is called with a file it
doesn't know how to open.

If you need any other information, please let me know. If this is not the appropriate newsgroup for this question, can you
suggest which ones I should try?


This isn't really html. A more appropriate place would be in the
group for the particular browser you wish to use. Linking to
data.poo for example can be made to work in a variety of browsers,
but each browser has to be configured to launch poodle.exe when it
encounters *.poo files (or have some proprietary url scheme like
lynxexec).

--
Lars Eighner -finger for geek code- ei*****@io.com http://www.io.com/~eighner/
If it wasn't for muscle spasms, I wouldn't get any exercise at all.
Jul 23 '05 #3
On Wed, 13 Oct 2004 16:14:25 GMT, "Johnny" <jo******@kc.rr .com>
wrote:
How do I create a link on a Web page on my hard drive that will run an
executable file on my hard drive?

For example, let's say I create runpoodle.htm and save it to my hard
drive, and let's also say I have an executable file on the root of C
named c:\poodle.exe.


If what you want to do is to be "web" based, then you will need
to use the cgi/script functions of the web server you are using
to execute the file on the server machine when the request is
sent to the web server.
Jul 23 '05 #4
On Wed, 13 Oct 2004 16:14:25 GMT, "Johnny" <jo******@kc.rr .com> wrote:
How do I create a link on a Web page on my hard drive that will run an
executable file on my hard drive?

For example, let's say I create runpoodle.htm and save it to my hard
drive, and let's also say I have an executable file on the root of C
named c:\poodle.exe.

How can I create a link of some sort on runpoodle.htm that will run
poodle.exe on c:\ ?
I'm building a cdrom menu for internal company use only and I've
located a product named Intralaunch which does some of what you want
to do. There are restrictions on how much it can do, fir instance, it
can only be licensed for an Intranet (hence the name) or run from a
disc. But when used from a disc, it must be run from the disc, it
doesn't work from the hard drive.

It uses javascript as it's mechanism. I used to have to provide
instructions to the users to select run instead of download when they
clicked on a link. Now when they click the link, the application
launches without a whimper. It's used to load corporate software from
my disc as well as launching applications like Excel or Powerpoint
using the windows file associations. I'm only using about 3% of it's
capability, but it's made a world of difference for our monthly
builds.
Better yet, can I specify a data file that poodle.exe will open after it
starts?


Intralaunch does have an option to launch a second application, so
maybe that capability can be used for what you have in mind. I haven't
had the need to try that option yet, so I can't tell you a lot about
it.

--
Erik

Jul 23 '05 #5
Johnny wrote:
I use Windows XP Pro, and when I create a simple href anything like this

<a href="file:\\c: \poodle.exe"> Run POODLE.EXE</a>

the result is that Windows opens a security warning box asking whether I
want to download poodle.exe.


I use Windows XP Pro, and when I create a simple href anything like this

<a href="file:\\c: \scary_virus.ex e">Make your computer explode</a>

the result is that Windows opens a security warning box asking whether I
want to download scary_virus.exe .
Jul 23 '05 #6
begin quote from Johnny in <Bv************ ******@twister. rdc-kc.rr.com>:
I use Windows XP Pro, and when I create a simple href anything like this

<a href="file:\\c: \poodle.exe"> Run POODLE.EXE</a>

the result is that Windows opens a security warning box asking whether I
want to download poodle.exe.


If this scary warning box wasn't there, this would be seen as a *great*
feature by virus and worm authors the world over. So this warning box is
supposed to be scary and something that users can't easily get rid of.

Safe computing practices dictate that users do not run programs of unknown
origin.

--
Shawn K. Quinn
Jul 23 '05 #7
Leif K-Brooks <eu*****@ecritt ers.biz> wrote in message news:<30******* ******@uni-berlin.de>...
I use Windows XP Pro, and when I create a simple href anything like this

<a href="file:\\c: \scary_virus.ex e">Make your computer explode</a>


If you want your scary virus to be more broadly browser-compatible,
you should use standard syntax instead of proprietary Microsoftisms:

<a href="file:///c:/scary_virus.exe ">Make your computer explode</a>

--
Dan
Jul 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3160
by: Bob Murdoch | last post by:
I'm developing an intranet application using W2k server and IE5.5 - 6.x clients. I've got one particular function that calls a stored procedure to update a number of records, depending on user input. The problem we have run into is that this procedure can take a few minutes to complete in certain circumstances, and of course IIS times out. ...
4
6854
by: Stan Sainte-Rose | last post by:
Hi guys, I would like to run a vbs script from an asp page. I ve tried many directions but no one works.. The first was : Dim oShell Set oShell = Server.CreateObject("WSCript.shell") i=oShell.run ("w:\wwwroot\look\j_consultation\j06_suivi\modules_stan\GenPDF.vbs 1 2 23,25 byAffaire N 1 FR stan@cyber97.com" )
6
1309
by: foldface | last post by:
Hi Sorry, don't know how to phrase the question any better. Within Visual Studio I have a style sheet that being dynamically added to the code, i.e. not via the html page. I want to place this within a html page so that the VS designer can see the style sheet but the running executable can't #ifdef RUNNING_IN_VS
9
3743
by: Matt Helm | last post by:
I am starting the design phase of a large project (ERP) where the backend will mostly be Python (or Ruby) providing web services. In this type of usage, is there any benenfit to running under Apache as opposed to a pure Python solution using Medusa, TwistedMatrix, or the like? Thanks, Matt
17
2628
by: Csaba Gabor | last post by:
Is there a way to determine the path to the php executable (as opposed to the script. In other words, I am looking for the path to php.exe or php-win.exe) that is currently running (ie. how was this script called) on Windows (I'm on Win XP Pro)? WScript/CScript (when programming in VBScript) allow this, for example. Failing that, is there...
10
5138
by: jon | last post by:
I am a beginner C programmer, this is actually my first programming lanugage, besides html, cgi, and javascript. I am looking for a way to make an .exe file, or a copy of my own file. I have tried writing a file, compling it, and reading it in a notepad, then writing a program to write it again, but i have had no luck. I assure you i'm not...
4
3020
by: somank.sharma | last post by:
I am running an exe created in C. I need the full path (absolute path) of this exe. In the first argument of main, I am getting the exe name. How can I get the full path for this exe.
51
4113
by: Ojas | last post by:
Hi!, I just out of curiosity want to know how top detect the client side application under which the script is getting run. I mean to ask the how to know whether the script is running under Command Prompt or Browser or some other application? Ojas.
4
3135
by: Brad Pears | last post by:
I have a vb.net 2005 project and have made a lot of modifications to it. The project runs fine in debug mode. Now I want to implement it and first I am running the executable on my machine to make sure it runs properly... However, when I run it locally as an executable, I get no end to run time errors - things like conversions from type string...
0
7814
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8253
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6471
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5316
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3752
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3762
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2253
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1356
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1072
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.