commandLine Property
Retrieves the argument used to launch the HTML Application (HTA).
Syntax
HTML N/A Scripting [ sPath = ] oHTA.commandLine
Possible Values
sPath String that specifies the path and arguments used to launch the HTA. The property is read-only with no default value.
Remarks
The commandLine property returns an empty string when the HTA is launched over the http protocol
.
Example
This example shows how to retrieve the commandLine property value.
Sample Code
<HTML> <HEAD> <HTA:APPLICATION ID="oHTA" APPLICATIONNAME="myApp" > <SCRIPT> alert("commandLine = " + oHTA.commandLine); </SCRIPT> </HEAD> <BODY SCROLL="no"> </BODY> </HTML>
Applies To
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus. HTA:APPLICATION
See Also
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.