Solved

How to call a local program from website?

Posted on 2009-04-01
2
452 Views
Last Modified: 2012-05-06
I want the user's computer to call our program we made, lets call it Accessor.  We want our website to call this program on the user's computer to parse an XML-like file.  I have a feeling it has something to do with Active-X but I am not familiar/good with web.  If anybody could give me a good tutorial website or pointers that would be wonderful.  Thank you.
0
Comment
Question by:htn5ca
2 Comments
 
LVL 18

Accepted Solution

by:
Rartemass earned 250 total points
ID: 24044221
Try something like the attached code.

You would change the <INPUT>  onclick value from Excel to whatever was required.

You need to enable the "Trusted Site" in IE Security settings, to allow the script to be run from your named web server.

<HTML>

<SCRIPT language=VBScript>

sub RunProg(CommandLine)

Dim ObjShell

Set ObjShell = CreateObject("WScript.Shell")

errorstate = ObjShell.Run(CommandLine, 1, False)

'Destroy Command line object

Set ObjShell = Nothing

end sub

</SCRIPT>

<INPUT onclick="RunProg('Excel')" type='button' value='Start Excel'>
 

</HTML>

Open in new window

0
 
LVL 28

Expert Comment

by:sybe
ID: 24048901
To run a program on the client's machine needs to bypass a couple of security protections. Anso you need to know that path to the executable.

But the solution in your case might be a lot simpler.

<a href="yourspecialfilewithspecialextension.acc">click here</a>

If the user has "Accessor" installed and the extension "acc" is associated with this program, clicking the link will ask the user to download the file, or to open it with "Accessor".
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java 1603 Error 3 50
Windows 2008 Group Policy - An error occurred. Please try again later 2 74
Can’t delete a file 14 140
Video won't play 5 52
Several part series to implement Internet Explorer 11 Enterprise Mode
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now