Please help :(
Thanks in advance.
There isn't a way to do this directly from HTA. You can write your
results to a text file or spawn some other process and read the
results from there.
Hope that helps.
HTA doesn't have an equivalent to wscript.quit so to work around this
limitation, we have a vbscript spawn the HTA application and use a registry
value that acts as a sort of status place holder for that particular package.
When the HTA application is finished, the vbscript reads the data in the
registry value and does a wscript.quit with the appropriate return code so
that Altiris can be alerted if an error occured.
Yes, but that does not provide for issuing an exit code, which was the
original poster's request. The wscript.quit method can take an
exitcode argument which is then available for testing by a calling
process. An HTA does not.
Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/