IFsrmActionCommand::WorkingDirectory property

[This property is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMAction, MSFT_FSRMFMJAction, and MSFT_FSRMFMJNotificationAction classes.]

Retrieves or sets the working directory in which the executable program will run.

This property is read/write.

Syntax


HRESULT put_WorkingDirectory(
  [in]  BSTR workingDirectory
);

HRESULT get_WorkingDirectory(
  [out] BSTR *workingDirectory
);

Property value

The working directory in which the executable program will run. The string is limited to MAX_PATH characters.

Error codes

The method returns the following return values.

S_OK

Success.

E_INVALIDARG

The workingDirectory parameter is NULL.

FSRM_E_OUT_OF_RANGE

The path is greater than MAX_PATH.

Remarks

The path can contain environment variables.

The path must exist when you set the property or the command executes. If the path does not exist when the command executes, FSRM writes an event to the Application log.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

Fsrm.h (include FsrmQuota.h or FsrmScreen.h)

DLL

SrmSvc.dll

IID

IID_IFsrmActionCommand is defined as 12937789-e247-4917-9c20-f3ee9c7ee783

See also

IFsrmActionCommand
MSFT_FSRMAction
MSFT_FSRMFMJAction
MSFT_FSRMFMJNotificationAction

 

 

Show: