Solved

How to call a local program from website?

Posted on 2009-04-01
2
455 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
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.

697 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