
launch an application using html/asp
---Opening an HTML page as "c:\testApp.htm" puts it in the local "My
Computer" security zone.
---Opening an HTML page as "http://127.0.0.1/testApp.htm" puts it in the
"Intranet" security zone.
Description of Internet Explorer Security Zones Registry Entries
http://support.microsoft.com/support/kb/articles/q182/5/69.asp
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--
Quote:
> Sorry,Another Question....
> I open the html using "c:\testApp.htm" to open.... It works
> But If I use "http:\127.0.0.1\testApp.htm" to open, It says shell object
> create as "wshell.shell" ) is not found....
> Why createobject("wscript.shell") will fail ??
> Thank you in advance.....
> > Put the site in the "Trusted Sites" security zone and lower security -
and
> > it's a per user decision whether or not to grant you that trust.
> > This is NOT RECOMMENDED if this isn't an INTRAnet situation...
> > --
> > Michael Harris
> > Microsoft.MVP.Scripting
> > --
> > Please do not email questions - post them to the newsgroup instead.
> > --
> > > Sorry, My Code is listed below:
> > > <HTML>
> > > <HEAD>
> > > <TITLE>Test page for app launch</TITLE>
> > > </HEAD>
> > > <INPUT TYPE=BUTTON VALUE="Click Me!" NAME="Test">
> > > <SCRIPT LANGUAGE=VBS>
> > > Sub Test_OnClick
> > > set shell = createobject("wscript.shell")
> > > shell.run "notepad.exe"
> > > End Sub
> > > </SCRIPT>
> > > </BODY>
> > > </HTML>
> > > How to avoid the warning msgbox after cliking the button ??
> > > > You can use any COM object inside IE hosted script provided you want
> to
> > > deal
> > > > with the hassles of the IE enforced security model regarding "unsafe
> > > > ActiveX...".
> > > > set shell = createobject("wscript.shell")
> > > > shell.run "notepad.exe"
> > > > --
> > > > Michael Harris
> > > > Microsoft.MVP.Scripting
> > > > --
> > > > Please do not email questions - post them to the newsgroup instead.
> > > > --
> > > > > HELP
> > > > > anyone here know how to launch an application in the client PC by
> > > clicking
> > > > a
> > > > > link or button?