ActiveX???? 
Author Message
 ActiveX????

i have aweb page that opens the notepad.exe on the client
computer... Here is the code

<script language="VBScript">
sub savepad()
Dim oShell
Dim lRet
Set oShell = CreateObject("WScript.Shell")
lRet = oShell.Run("notepad.exe", 1, True)
end sub
</script>

Well only when i lower the securety It will work

What is the problem and i could i soulve it???



Thu, 11 Sep 2003 20:54:36 GMT  
 ActiveX????
Q195826 - PRB: CreateObject Fails from Client-Side Scripts
http://support.microsoft.com/support/kb/articles/Q195/8/26.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...". Whether the user allows this is strictly
up to them. There is no way to do this silently without some prior acknowledgement and permission
from the end user...

Or you can simply use HTAs instead - as simple as saving the file with .hta instead of .htm as the
extension. .hta files are hosted by mshta.exe rather than iexplore.exe, and have a security model
comparable to a conventional Windows desktop application. Of course accepting and executing an HTA
is also up to the end user...

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--

Quote:

> i have aweb page that opens the notepad.exe on the client
> computer... Here is the code

> <script language="VBScript">
> sub savepad()
> Dim oShell
> Dim lRet
> Set oShell = CreateObject("WScript.Shell")
> lRet = oShell.Run("notepad.exe", 1, True)
> end sub
> </script>

> Well only when i lower the securety It will work

> What is the problem and i could i soulve it???



Fri, 12 Sep 2003 09:12:13 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ActiveX.exe or ActiveX DLL or ActiveX Control?????????????

2. ActiveX DLL, ActiveX EXE & ActiveX OCX version

3. ActiveX DLL, ActiveX EXE & ActiveX OCX version

4. ActiveX in Netscape / ActiveX en Netscape

5. ActiveX Control in ActiveX EXE

6. ActiveX or ActiveX Document???

7. Some Very Basic ActiveX Questions from a total ActiveX newbie

8. ActiveX exe vs ActiveX dll

9. ActiveX DLL to ActiveX EXE

10. ActiveX dll vs ActiveX control - Whats the difference

11. ActiveX Control in ActiveX EXE

12. ActiveX Exe Using ActiveX Dll?

 

 
Powered by phpBB® Forum Software