Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 9th, 2005, 05:36 AM
Authorized User
Join Date: Jun 2003
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default open a windows application from a web page


I have a work that stopped because the client wants to run the windows application I've created before (still in VB6), from a web page in his Intranet. I don't work with web applications but I need to finished it. Any suggestions that can help me to start working on it?

help will be appreciated:)



Elisa Resina
Elisa Resina
Old May 9th, 2005, 02:00 PM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

Firstly you will have to make sure that the page is showing up in either the "Trusted Sites" zone or "Local Intranet".Then in the relevant zone you'll have to lower security settings on the client to allow "Initialize and Script ActiveX Controls not marked safe for scripting". Obviously you cannot do thius from within a web page.
The following code will then execute a command as if typed at the command line:
function runCommand(Command)
  var oShell = new ActiveXObject("WScript.Shell");
  oShell.Run(Command, 1, true);
This is IE only.
You can see more options for the shell.run method by looking at MSDN


Joe (Microsoft MVP - XML)

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Open a PDF file in a web application zaghmout ASP.NET 2.0 Professional 2 September 19th, 2008 12:53 PM
Application is Web Or Windows! How to Identify? sizzlin_samy General .NET 1 October 8th, 2007 11:20 AM
Web Application OR Windows Application adesilva .NET Framework 2.0 2 May 4th, 2007 07:12 AM
How can i debug my web/windows application? vijaykumartaduri ASP.NET 2.0 Professional 1 March 20th, 2007 06:40 AM
Web application Vs Windows Application Ned .NET Web Services 2 January 20th, 2004 01:27 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.