Q195826 - PRB: CreateObject Fails from Client-Side Scripts
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...
Please do not email questions - post them to the newsgroup instead.
> 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
> Well only when i lower the securety It will work
> What is the problem and i could i soulve it???