
Capture output from command line program
Quote:
> BTW... Do you know if it's possible to do this on a web page? This is for an
> intranet, so security isn't a problem.
In the end, anything is *possible* from client side HTML script, but security is *always* a problem.
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. Even the lowest "canned" security settings prompt for use of unsafe components.
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.
--