Solved

How to call a local program from website?

Posted on 2009-04-01
2
449 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Suggested Solutions

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
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.

707 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

12 Experts available now in Live!

Get 1:1 Help Now