HBCMS更多的中文手册参考:

commandLine参数属性

DHTML文档教程

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

dhtml语法

HTMLN/A
Scripting[ sPath = ] HTA:APPLICATION.commandLine

DHTML可能的值

sPathStringthat specifies the path and arguments used to launch the HTA.

The property is read-only. The property has no default value.

Remarks

The commandLine property returns an empty string when the HTA is launched over the http protocol.

DHTML代码范例

This example shows how to retrieve the commandLine property value.

<HTML>
<HEAD>
<HTA:APPLICATION ID="oHTA"
APPLICATIONNAME="myApp"
>
<SCRIPT>
alert("commandLine    = " + oHTA.commandLine);
</SCRIPT>
</HEAD>
<BODY SCROLL="no">
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

是否符合公共标准

There is no public standard that applies to this property.

Applies To

HTA:APPLICATION

更多语法参考

Introduction to HTML Applications (HTAs)