473,461 Members | 2,341 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Run a local install Application from JS!?

Hi
I want to be able to start a locally installed application from within a
web page.

So if our application is installed it is started when a user clicks a link
on our page. I know or assume this cannot be done just from JS?

I though I could do it using an OCX active (signed) and then call it from JS
using onclick but can't seem to get this to work!

Any ideas of how I can do this or better still any links to a working
example!
Oct 23 '05 #1
5 8957
"Adrian" <Ad****@nospamhotmail.com.uk> wrote in message
news:dj**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Hi
I want to be able to start a locally installed application from within a web page.

So if our application is installed it is started when a user clicks a link
on our page. I know or assume this cannot be done just from JS?

I though I could do it using an OCX active (signed) and then call it from JS using onclick but can't seem to get this to work!

Any ideas of how I can do this or better still any links to a working
example!

You'll get a security warning but you can do it:
<html>
<head>
<title>run_exe.com/</title>
<script type="text/javascript">
function run(what) {
var wss = new ActiveXObject("WScript.Shell");
wss.Run(what);
}
</script>
</head>
<body>
<form>
<input type="button" value="Notepad" onclick="run('Notepad.exe')">
<input type="button" value="Calculator" onclick="run('Calc.exe')">
</form>
</body>
</html>

Oct 23 '05 #2
Great Thanks for your help.

I though I would need an ActiveX but this is good.

Is there any way around the warning?

What if on the first visit to the site it prompts them to add it to their
trusted sites, would this work?

If so could it be done from script?

Thanks

Again

"McKirahan" <Ne**@McKirahan.com> wrote in message
news:l-********************@comcast.com...
"Adrian" <Ad****@nospamhotmail.com.uk> wrote in message
news:dj**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Hi
I want to be able to start a locally installed application from
within

a
web page.

So if our application is installed it is started when a user clicks a
link
on our page. I know or assume this cannot be done just from JS?

I though I could do it using an OCX active (signed) and then call it from

JS
using onclick but can't seem to get this to work!

Any ideas of how I can do this or better still any links to a working
example!

You'll get a security warning but you can do it:
<html>
<head>
<title>run_exe.com/</title>
<script type="text/javascript">
function run(what) {
var wss = new ActiveXObject("WScript.Shell");
wss.Run(what);
}
</script>
</head>
<body>
<form>
<input type="button" value="Notepad" onclick="run('Notepad.exe')">
<input type="button" value="Calculator" onclick="run('Calc.exe')">
</form>
</body>
</html>

Oct 23 '05 #3
"Adrian" <Ad****@nospamhotmail.com.uk> wrote in message
news:dj**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Great Thanks for your help.

I though I would need an ActiveX but this is good.

Is there any way around the warning?

What if on the first visit to the site it prompts them to add it to their
trusted sites, would this work?

If so could it be done from script?

Thanks

Again


http://wd.iworld.com/forum/showthrea...threadid=51038

"No, there's no way to hide that message, if that message wasn't there
anyone could come along and delete c:/windows, not good at all."

Try running it as an HTA; hust rename it with an .hta extension.
Oct 23 '05 #4
OK Thanks for your help

"McKirahan" <Ne**@McKirahan.com> wrote in message
news:Ac******************************@comcast.com. ..
"Adrian" <Ad****@nospamhotmail.com.uk> wrote in message
news:dj**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Great Thanks for your help.

I though I would need an ActiveX but this is good.

Is there any way around the warning?

What if on the first visit to the site it prompts them to add it to their
trusted sites, would this work?

If so could it be done from script?

Thanks

Again


http://wd.iworld.com/forum/showthrea...threadid=51038

"No, there's no way to hide that message, if that message wasn't there
anyone could come along and delete c:/windows, not good at all."

Try running it as an HTA; hust rename it with an .hta extension.

Oct 24 '05 #5
What is browser compatibility of this solution ?
-> Firefox, IE, Opera ?
-> only under Windows i presume ?

Oct 24 '05 #6

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

Similar topics

11
by: Mike MacSween | last post by:
My client has an MS Access database application on her local machine. I have full access to that in terms of changing the design. I've got a simple PHP/MySql application on shared hosting, so no...
6
by: Job Lot | last post by:
Using VB.NET how can I find all available SQL Server on a local network and list all the databases in each server. Thanks
6
by: Rob | last post by:
Hi, I am working on a project that requires a Windows Service which performs the following file transfer functions. 1. It monitors a specific local directory on a Windows 2003 Server. 2. When...
5
by: guy | last post by:
In the past I've used sockets in C++ to allow apps to communicate with each other over a local network. Is there anything better/more advanced in .NET or should I continue to use sockets and the...
7
by: Wysiwyg | last post by:
Is there any way to add an embedded resource to a project without copying it to the project's directory? I have shared resources and don't want each project using the images, xml files, etc. to...
1
by: karim | last post by:
My computer (connected to a domain) is having trouble connecting to the local MSDE when using 'local' or '(local)' as server name. The only way I can connect to server through Visual Studio or DTS...
3
by: Matt | last post by:
I am writing an application in ASP.NET where one of the requirements is that the user wants the option to "work locally". This is a Time and Expense application for sales people on the road. I...
10
by: Woody Splawn | last post by:
I have been developing a ClientServer application on one machine at my office but the time has come to transfer it to the customer. The customer is running a Windows 2000 local area network. I...
29
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. How do I...
2
by: Terry Olsen | last post by:
Can anyone give me some guidance on installing a local printer with VB 2005? I'm guessing I would probably do this with WMI, but i'm not finding anything obvious. I see how to add a networked...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.