Click to return to the DHTML, HTML     
CAPTION Attribute | capti...     ICON Attribute | icon Pro...     HTML Applications Referen...    
Web Workshop  |  DHTML, HTML & CSS

commandLine Property


Retrieves the argument used to launch the HTML Application (HTA).

Syntax

HTMLN/A
Scripting[ sPath = ] oHTA.commandLine

Possible Values

sPathString 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>
This feature requires Internet Explorer 5 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTA:APPLICATION

See Also

HTML Applications Overview



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.