Actually, an HTA runs under a completely different host, MSHTA.EXE instead of IEXPLORE.EXE. They
both use the same rendering engine (MSHTML.DLL) but impose different security models. The security
model for an HTA is essentially the same as for a conventional desktop application which why
accessing one via HTTP gives you the same open/save prompt as for a EXE.
--
Michael Harris
MVP Scripting
HTA is HyperText Application. Same code as HTML, but one hell of a lot more dangerous unless you
trust the code (and coder) implicitly! The different extension makes IE handle the HTML
differently.
--
No support provided by e-mail! Reply to the newsgroups only!
Regards,
Doug Knox, Microsoft MVPDTS
* Help us help YOU - http://members.home.com/dts-l/goodpost.htm
--
The Microsoft MVP Program does not constitute employment or contractual
obligation with Microsoft Corporation. We do this for fun! :)
--
Visit my web site for Win95/98 Tweaks, Tips and Utilities
http://members.xoom.com/dbknox/registry/index.htm
Quote:
> It works like a charm under Windows 98, Just not 95. I changed the security
> level to nothing and still have the problem.
> Does anyone know what the difference would be between 95 & 98? I am running
> IE5.0, (Same Version) on both and like I said earlier, it will run from a
> windows run command line.
> What is a HTA?? Maybe I can do something with that.
> BB
> > You're security is probably set too high. You'll need to lower the
> security
> > level for the page, or do it through an HTA, or something like that. The
> > shell object is not "Safe for Scripting", and IE won't let you create it
> > until you convince it you know what you're doing is potentially dangerous.
> > Mike Whalen
> > Windows Script Dev
> > > Now I get the message that "ActiveX component can't create object
> > > "WScript.Shell"
> > > I am using Windows 95 and IE 5.01. I can run the script from a windows
> > run
> > > prompt but not from the webpage.
> > > Thanks for the help you have given me so far.
> > > BB
> > > I failed to realize you are trying to run an executable file from the
> > > address bar. Create an HTA and create a shell to run the script
> > > <a href="file:///c:\my.hta">test</a>
> > > --my.hta--
> > > <html>
> > > <script>
> > > var shell=new ActiveXObject("WScript.Shell");
> > > shell.Run("C:\\windows\\cscript.exe C:\\windows\\CACP.vbs tlr.rpc Keep
> > > x.vbs", 1, false);
> > > </script>
> > > </html>
> > > --end--
> > > --
> > > Mark L. Ferguson Please reply in Newsgroup
> > > marfers notes for OE 5.0 >
> > > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm
> > > > I get the same message. Page can not be displayed.
> > > > Any other Ideas? I'm desperate. Thanks BB
> > > > Try it with single quotes :
> > > > <a href="file:///C:/windows/CACP.vbs 'tlr.rpc Keep x.vbs' ">Test</a>
> > > > --
> > > > Mark L. Ferguson Please reply in Newsgroup
> > > > marfers notes for OE 5.0 >
> > > > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm
> > > > > Can anyone tell me why this hyperlink won't work???
> > > > > <a
> href=file:///C:/windows/CACP.vbs%22%20tlr.rpc%20Keep%20x.vbs%22>Test</a></p>
> > > > > I am trying to call a file on my local pc with augments. If I type
> > the
> > > > > refrence into the address line it works fine.
> > > > > Thanks for saving my hair.
> > > > > BB