launch an application using html/asp 
Author Message
 launch an application using html/asp

HELP
anyone here know how to launch an application in the client PC by clicking a
link or button?


Sat, 07 Jun 2003 10:28:50 GMT  
 launch an application using html/asp
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.
--


Quote:
> HELP
> anyone here know how to launch an application in the client PC by clicking
a
> link or button?



Sat, 07 Jun 2003 14:00:22 GMT  
 launch an application using html/asp
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 ??



Quote:
> 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?



Mon, 09 Jun 2003 09:48:03 GMT  
 launch an application using html/asp
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.
--


Quote:
> 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?



Mon, 09 Jun 2003 14:11:41 GMT  
 launch an application using html/asp
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.....



Quote:
> 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?



Mon, 09 Jun 2003 18:27:14 GMT  
 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?



Tue, 10 Jun 2003 11:05:12 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Launching HTA (HTML Applications)

2. Hi, how can i launch an application using a file of this application

3. Launching MS Application using Vbscripting

4. Using VBScript to launch applications

5. Help Using VBScript To Launch Client Side Applications

6. Launching application via ASP

7. Quirkiness Launching HTML Help File in Application

8. Launch HTML Help file from a Visual Basic Application

9. Launching default browser without using html file

10. Launching an executable within ASP using VBScript

11. Launching a Bat file from withing ASP using WSH

12. Interface with other application through VBScript - Not HTML or ASP

 

 
Powered by phpBB® Forum Software