CurrentDirectory
[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 directory in which the script should be run. The following table summarizes the attributes of the CurrentDirectory 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 path in the CurrentDirectory property must be an absolute path on a cluster disk. An environment variable representing a path cannot be used. A dot (.) defaults to the directory in which the Cluster service is installed.
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 CurrentDirectory can be set with the following example code.
WCHAR szCurrentDirectoryData[] = L"C:\\Bin";
CLUSPROP_SZ_DECLARE( CurrentDirectoryValue,
sizeof(szCurrentDirectoryData) / sizeof(WCHAR) );
CurrentDirectoryValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
CurrentDirectoryValue.cbLength = sizeof( szCurrentDirectoryData );
StringCbCopy( CurrentDirectoryValue.sz,
CurrentDirectoryValue.cbLength,
szCurrentDirectoryData );
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 |