Solved

How to call a local program from website?

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IE not alloowing PDF's to open 10 77
How to open a zip file 4 81
AWS ELB 5 76
Annoying Taskbar Popup from Edge 8 23
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
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.

786 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