Поделиться через


CommandLine

[This property is no longer available for use as of Windows Server 2012.]

This property is not supported.

**Windows Server 2008 R2 and Windows Server 2008: **

Describes the command-line used to invoke the script when it is started. The following table summarizes the attributes of the CommandLine property.

Attribute Value
Data type
Null-terminated Unicode string
Access
Read/write
Status
Required
Structure
CLUSPROP_SZ
Minimum
NULL
Maximum
None (but see Maximum String Size).
Default
NULL

Remarks

The CLUSPROP_SZ_DECLARE macro creates a CLUSPROP_SZ structure with an array of the correct size.

Examples

The property value portion of a property list entry for CommandLine can be set with the following example code.

WCHAR                szCommandLineData[] = L"C:\\Bin\\MyApp.exe";
CLUSPROP_SZ_DECLARE( CommandLineValue, sizeof( szCommandLineData ) / sizeof( WCHAR ) );

CommandLineValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
CommandLineValue.cbLength  = sizeof( szCommandLineData );
StringCbCopy( CommandLineValue.sz, CommandLineValue.cbLength, szCommandLineData );

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Datacenter, Windows Server 2008 Enterprise
End of client support
None supported
End of server support
Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise

See also

Generic Script Private Properties

CLUSPROP_SZ

CLUSPROP_SZ_DECLARE