Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 9th, 2005, 05:36 AM
Authorized User
 
Join Date: Jun 2003
Location: Lisbon, , Portugal.
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default open a windows application from a web page

Hello,

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:)

Thanks

Elisa


Elisa Resina
__________________
Elisa Resina
Reply With Quote
  #2 (permalink)  
Old May 9th, 2005, 02:00 PM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

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:
Code:
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)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:07 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.