p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Web Programming > HTML > HTML Code Clinic
I forgot my password Register Now
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 9th, 2005, 06:36 AM
Authorized User
Points: 200, Level: 3
Points: 200, Level: 3 Points: 200, Level: 3 Points: 200, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old May 9th, 2005, 03:00 PM
joefawcett's Avatar
Wrox Author
Points: 8,994, Level: 40
Points: 8,994, Level: 40 Points: 8,994, Level: 40 Points: 8,994, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 2,922
Thanks: 0
Thanked 13 Times in 12 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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 01:53 PM
Application is Web Or Windows! How to Identify? sizzlin_samy General .NET 1 October 8th, 2007 12:20 PM
Web Application OR Windows Application adesilva .NET Framework 2.0 2 May 4th, 2007 08:12 AM
How can i debug my web/windows application? vijaykumartaduri ASP.NET 2.0 Professional 1 March 20th, 2007 07: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 05:15 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc